From c9d907c08e65669d4f1ab0719613a729884aa2a3 Mon Sep 17 00:00:00 2001 From: cayossarian <23534755+cayossarian@users.noreply.github.com> Date: Fri, 9 Oct 2026 17:13:52 -0700 Subject: [PATCH] docs: put the hardware read timeout's docstring under its constant --- custom_components/span_panel/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/span_panel/__init__.py b/custom_components/span_panel/__init__.py index 037fa9a1..de7d7ae7 100644 --- a/custom_components/span_panel/__init__.py +++ b/custom_components/span_panel/__init__.py @@ -173,6 +173,7 @@ class _DeferredReload: """Per entry, the reload waiting for Home Assistant to start; see `update_listener`.""" HARDWARE_READ_TIMEOUT_S: Final = 5.0 +"""How long setup waits for the panel's status before going on without it.""" class _HardwareRead(Enum): @@ -182,7 +183,7 @@ class _HardwareRead(Enum): HARDWARE_UNREAD: Final = _HardwareRead.UNREAD -"""How long setup waits for the panel's status before going on without it.""" +"""What `_async_read_hardware_version` answers when the status cannot be read.""" async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: