Handle invalid ISY data when the device is booting (#79163)

This commit is contained in:
J. Nick Koston 2022-09-27 17:42:48 -10:00 committed by GitHub
parent 7b708f4b35
commit 38f3fa0762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)