mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 12:35:17 +01:00
Fix device not requesting Home Assistant time at the update interval (#6022)
This commit is contained in:
parent
3be97868fc
commit
d4d49e38fc
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ void APIServer::set_reboot_timeout(uint32_t reboot_timeout) { this->reboot_timeo
|
|||
#ifdef USE_HOMEASSISTANT_TIME
|
||||
void APIServer::request_time() {
|
||||
for (auto &client : this->clients_) {
|
||||
if (!client->remove_ && client->connection_state_ == APIConnection::ConnectionState::CONNECTED)
|
||||
if (!client->remove_ && client->is_authenticated())
|
||||
client->send_time_request();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue