Update esphome/components/api/api_server.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2025-12-04 17:49:49 -06:00
committed by GitHub
co-authored by Copilot
parent 5f2afe4b82
commit 501a5f8df4
+4
View File
@@ -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() {