Skip to content

Commit

Permalink
Set component status to warning when no frame is received
Browse files Browse the repository at this point in the history
  • Loading branch information
hberntsen committed Jan 15, 2025
1 parent a11a4b6 commit 12dd92c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esphome/components/MhiAcCtrl/mhi_ac_ctrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,10 @@ class MhiAcCtrl : public climate::Climate,
bool publish_self_state = false;
if(!mhi_ac_ctrl_core_snapshot(100)) {
ESP_LOGW(TAG, "Snapshot timeout");
this->status_set_warning("No MHI AC communication");
return;
}
this->status_clear_warning();

if(total_energy_sensor_)
total_energy_sensor_->loop();
Expand Down

0 comments on commit 12dd92c

Please sign in to comment.