Skip to content

Commit

Permalink
Reconnect on SSLEOFError
Browse files Browse the repository at this point in the history
  • Loading branch information
mepla authored Jul 3, 2024
1 parent 0954568 commit cc018da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homewizard_climate_websocket/ws/hw_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _send_message(self, payload: str) -> None:
)
try:
self._socket_app.send(payload)
except WebSocketConnectionClosedException:
except (WebSocketConnectionClosedException, SSLEOFError):
self._auto_reconnect_if_needed()

def turn_on(self) -> None:
Expand Down

0 comments on commit cc018da

Please sign in to comment.