Skip to content

Commit

Permalink
Fix incorrectly handled exception
Browse files Browse the repository at this point in the history
See #27
  • Loading branch information
ldotlopez committed Nov 28, 2022
1 parent 6696015 commit 27778e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/ideenergy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27778e3

Please sign in to comment.