mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 16:48:40 +00:00
Update esphome/components/api/api_server.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
5f2afe4b82
commit
501a5f8df4
@@ -108,6 +108,10 @@ void APIServer::setup() {
|
||||
|
||||
// Initialize last_connected_ for reboot timeout tracking
|
||||
this->last_connected_ = App.get_loop_component_start_time();
|
||||
// Set warning status if reboot timeout is enabled
|
||||
if (this->reboot_timeout_ != 0) {
|
||||
this->status_set_warning();
|
||||
}
|
||||
}
|
||||
|
||||
void APIServer::loop() {
|
||||
|
||||
Reference in New Issue
Block a user