mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Make _on_disconnect a static method
This commit is contained in:
@@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user