Fix unhandled exception with SimpliSafe socket disconnection (#41917)
This commit is contained in:
1 parent
da6bdd4464
commit
a0bb8ae5d9
1 file changed
+1
-1
@@ -450,7 +450,7 @@ class SimpliSafe:
|
||||
"""Initialize the data class."""
|
||||
asyncio.create_task(self.websocket.async_connect())
|
||||
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()
|
||||
|
||||
Reference in new issue
Block a user