From 971e954a545dfb2c54e18e91bb9be4e0eb5f9a01 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 23 Jun 2025 11:59:07 +0200 Subject: [PATCH] follow logging guidelines --- esphome/components/api/api_server.cpp | 2 +- tests/integration/test_api_reboot_timeout.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/api/api_server.cpp b/esphome/components/api/api_server.cpp index ad1eeda8ea..583837af82 100644 --- a/esphome/components/api/api_server.cpp +++ b/esphome/components/api/api_server.cpp @@ -128,7 +128,7 @@ void APIServer::schedule_reboot_timeout_() { this->status_set_warning(); this->set_timeout("api_reboot", this->reboot_timeout_, []() { if (!global_api_server->is_connected()) { - ESP_LOGE(TAG, "No client connected; rebooting"); + ESP_LOGE(TAG, "No clients; rebooting"); App.reboot(); } }); diff --git a/tests/integration/test_api_reboot_timeout.py b/tests/integration/test_api_reboot_timeout.py index 7cace506b2..dd9f5fbd1e 100644 --- a/tests/integration/test_api_reboot_timeout.py +++ b/tests/integration/test_api_reboot_timeout.py @@ -16,7 +16,7 @@ async def test_api_reboot_timeout( """Test that the device reboots when no API clients connect within the timeout.""" loop = asyncio.get_running_loop() reboot_future = loop.create_future() - reboot_pattern = re.compile(r"No client connected; rebooting") + reboot_pattern = re.compile(r"No clients; rebooting") def check_output(line: str) -> None: """Check output for reboot message."""