Make _on_disconnect a static method

This commit is contained in:
Aaron Bach
2020-02-05 13:41:41 -07:00
parent f656ec4e14
commit 2e6cf10be0

View File

@@ -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")