mirror of
https://github.com/esphome/esphome.git
synced 2025-09-04 04:12:23 +01:00
Publish NAN when dallas conversion failed (#3227)
This commit is contained in:
@@ -110,6 +110,9 @@ void DallasComponent::update() {
|
||||
if (!result) {
|
||||
ESP_LOGE(TAG, "Requesting conversion failed");
|
||||
this->status_set_warning();
|
||||
for (auto *sensor : this->sensors_) {
|
||||
sensor->publish_state(NAN);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user