mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Dont reload integration on auth error in Aladdin Connect (#92399)
Remove reload on auth error
This commit is contained in:
parent
7a57435e8c
commit
774f1c8ef9
@ -89,15 +89,9 @@ class AladdinDevice(CoverEntity):
|
|||||||
await self._acc.get_doors(self._serial)
|
await self._acc.get_doors(self._serial)
|
||||||
self._attr_available = True
|
self._attr_available = True
|
||||||
|
|
||||||
except session_manager.ConnectionError:
|
except (session_manager.ConnectionError, session_manager.InvalidPasswordError):
|
||||||
self._attr_available = False
|
self._attr_available = False
|
||||||
|
|
||||||
except session_manager.InvalidPasswordError:
|
|
||||||
self._attr_available = False
|
|
||||||
await self.hass.async_create_task(
|
|
||||||
self.hass.config_entries.async_reload(self._entry_id)
|
|
||||||
)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_closed(self) -> bool | None:
|
def is_closed(self) -> bool | None:
|
||||||
"""Update is closed attribute."""
|
"""Update is closed attribute."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user