From 38f3fa0762ea85229a263e5553fd17b01aa9ee4d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" <nick@koston.org> Date: Tue, 27 Sep 2022 17:42:48 -1000 Subject: [PATCH] Handle invalid ISY data when the device is booting (#79163) --- homeassistant/components/isy994/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homeassistant/components/isy994/__init__.py b/homeassistant/components/isy994/__init__.py index 301c86827e9..1b689e563dc 100644 --- a/homeassistant/components/isy994/__init__.py +++ b/homeassistant/components/isy994/__init__.py @@ -192,6 +192,10 @@ async def async_setup_entry( raise ConfigEntryNotReady( f"Invalid XML response from ISY; Ensure the ISY is running the latest firmware: {err}" ) from err + except TypeError as err: + raise ConfigEntryNotReady( + f"Invalid response ISY, device is likely still starting: {err}" + ) from err _categorize_nodes(hass_isy_data, isy.nodes, ignore_identifier, sensor_identifier) _categorize_programs(hass_isy_data, isy.programs) -- GitLab