mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Fix unhandled exception with SimpliSafe socket disconnection (#41917)
This commit is contained in:
@@ -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