init cleanup

This commit is contained in:
Tomaae 2022-03-26 01:29:03 +01:00
parent 0c097e2206
commit d1a8c624fb
No known key found for this signature in database
GPG key ID: 8360BBD8A381D1C0

View file

@ -42,7 +42,7 @@ async def async_setup_entry(hass, config_entry) -> bool:
controller = MikrotikControllerData(hass, config_entry)
await controller.async_hwinfo_update()
if not controller.connected():
raise ConfigEntryNotReady(f"Cannot connect to host")
raise ConfigEntryNotReady("Cannot connect to host")
await controller.async_update()