mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 12:55:46 +01:00
Publish NAN when dallas conversion failed (#3227)
This commit is contained in:
parent
125c693e3f
commit
d594f43ebd
@ -111,6 +111,9 @@ void DallasComponent::update() {
|
|||||||
if (!result) {
|
if (!result) {
|
||||||
ESP_LOGE(TAG, "Requesting conversion failed");
|
ESP_LOGE(TAG, "Requesting conversion failed");
|
||||||
this->status_set_warning();
|
this->status_set_warning();
|
||||||
|
for (auto *sensor : this->sensors_) {
|
||||||
|
sensor->publish_state(NAN);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user