mirror of
https://github.com/esphome/esphome.git
synced 2024-12-24 14:34:54 +01:00
Publish NAN when dallas conversion failed (#3227)
This commit is contained in:
parent
c2f5ac9eba
commit
0c4de2bc97
1 changed files with 3 additions and 0 deletions
|
@ -110,6 +110,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 a new issue