From a0bb8ae5d92a81e3450509425af88ce0a51f7bba Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Thu, 15 Oct 2020 16:00:57 -0600 Subject: [PATCH] Fix unhandled exception with SimpliSafe socket disconnection (#41917) --- homeassistant/components/simplisafe/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/simplisafe/__init__.py b/homeassistant/components/simplisafe/__init__.py index 4895d43b162..37fa1761c6b 100644 --- a/homeassistant/components/simplisafe/__init__.py +++ b/homeassistant/components/simplisafe/__init__.py @@ -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()