From 27778e3e25de3c4fe90aca0327accc2248cb7e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20L=C3=B3pez?= Date: Mon, 28 Nov 2022 18:19:35 +0100 Subject: [PATCH] Fix incorrectly handled exception See #27 --- custom_components/ideenergy/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/ideenergy/__init__.py b/custom_components/ideenergy/__init__.py index 4bc0c15..5a9e042 100644 --- a/custom_components/ideenergy/__init__.py +++ b/custom_components/ideenergy/__init__.py @@ -153,6 +153,7 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry): contract_details = await api.get_contract_details() except ideenergy.client.ClientError as e: _LOGGER.debug(f"Unable to initialize integration: {e}") + return False update_integration(hass, entry, IDeEnergyDeviceInfo(contract_details)) return True