mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix unhandled exception with SimpliSafe socket disconnection (#41917)
This commit is contained in:
parent
da6bdd4464
commit
a0bb8ae5d9
@ -450,7 +450,7 @@ class SimpliSafe:
|
|||||||
"""Initialize the data class."""
|
"""Initialize the data class."""
|
||||||
asyncio.create_task(self.websocket.async_connect())
|
asyncio.create_task(self.websocket.async_connect())
|
||||||
self._hass.bus.async_listen_once(
|
self._hass.bus.async_listen_once(
|
||||||
EVENT_HOMEASSISTANT_STOP, self.websocket.async_disconnect
|
EVENT_HOMEASSISTANT_STOP, self.websocket.async_disconnect()
|
||||||
)
|
)
|
||||||
|
|
||||||
self.systems = await self._api.get_systems()
|
self.systems = await self._api.get_systems()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user