Skip to content

Commit

Permalink
Fix on_pong (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shutgun authored Apr 9, 2021
1 parent 6ffd29e commit 6c32b65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devolo_home_control_api/backend/mprm_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ def _on_pong(self, ws: websocket.WebSocketApp, *args): # pylint: disable=unused
""" Callback method to keep the session valid. """
self.refresh_session()

def _on_pong_old(self, *args):
def _on_pong_old(self, *args): # pylint: disable=unused-argument
""" Deprecated callback method to keep the session valid. """
self._on_pong(ws=self._ws, *args)
self.refresh_session()

def _try_reconnect(self, sleep_interval: int):
""" Try to reconnect to the websocket. """
Expand Down
5 changes: 5 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.17.3] - 2021/04/09

### Fixed

- Session refresh with old websocket_client versions was not working

## [v0.17.2] - 2021/04/09

Expand Down

0 comments on commit 6c32b65

Please sign in to comment.