From 2e6cf10be071133d5cbf0e06f6dd91126a3aab43 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Wed, 5 Feb 2020 13:41:41 -0700 Subject: [PATCH] Make _on_disconnect a static method --- homeassistant/components/simplisafe/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/simplisafe/__init__.py b/homeassistant/components/simplisafe/__init__.py index 5f510f8bd2d..fac21bdb683 100644 --- a/homeassistant/components/simplisafe/__init__.py +++ b/homeassistant/components/simplisafe/__init__.py @@ -382,7 +382,8 @@ class SimpliSafeWebsocket: self._hass, DEFAULT_WATCHDOG_SECONDS, self._async_websocket_reconnect ) - def _on_disconnect(self): + @staticmethod + def _on_disconnect(): """Define a handler to fire when the websocket is disconnected.""" _LOGGER.info("Disconnected from websocket")