mirror of https://github.com/esphome/esphome.git
fix warnings
This commit is contained in:
parent
f74b439636
commit
75fcbc097d
|
@ -93,7 +93,7 @@ void StatusIndicator::loop() {
|
|||
if (status.empty() && api::global_api_server != nullptr && not api::global_api_server->is_connected()) {
|
||||
status = "on_api_disconnected";
|
||||
this->status_.on_api = 1;
|
||||
} else if (this->status_.on_error) {
|
||||
} else if (this->status_.on_api) {
|
||||
status = "on_api_connected";
|
||||
this->status_.on_api = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue