Skip to content

Commit

Permalink
fix: not all updates passed from websockets
Browse files Browse the repository at this point in the history
chore: bump version number (v2023.7.5 -> v2023.7.6)
  • Loading branch information
alryaz committed Jul 4, 2023
1 parent 7c86788 commit cdfbac9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions custom_components/pandora_cas/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1422,9 +1422,7 @@ def _process_ws_initial_state(

return self._update_device_current_state(
device,
**CurrentState.get_ws_dict_args(
data, identifier=device.device_id
),
**CurrentState.get_ws_dict_args(data, identifier=device.device_id),
)

def _process_ws_state(
Expand All @@ -1443,9 +1441,7 @@ def _process_ws_state(

return self._update_device_current_state(
device,
**CurrentState.get_ws_dict_args(
data, identifier=device.device_id
)
**CurrentState.get_ws_dict_args(data, identifier=device.device_id),
)

# The routines are virtually the same
Expand Down Expand Up @@ -1554,7 +1550,9 @@ async def async_listen_websockets(self, auto_restart: bool = False):
f"[{self}] Unknown message data: {message}"
)
if isinstance(contents, Mapping):
_LOGGER.debug(f'[{self}] Received WS message: {contents}')
_LOGGER.debug(
f"[{self}] Received WS message: {contents}"
)
yield contents
else:
_LOGGER.warning(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/pandora_cas/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"iot_class": "cloud_push",
"issue_tracker": "https://github.com/alryaz/hass-pandora-cas/issues",
"requirements": ["haversine~=2.8.0"],
"version": "2023.7.5"
"version": "2023.7.6"
}

0 comments on commit cdfbac9

Please sign in to comment.