Skip to content

Commit

Permalink
yamahayxc: fix status info updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Morg42 committed Oct 13, 2023
1 parent 2dfcff1 commit c1781aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yamahayxc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ def _update_state(self, yamaha_host, update_items=True):
if state is None:
return
state2 = self._submit_payload(yamaha_host, self._build_cmd_get_play_state())
state.update(state2)
state2.update(state)
state = state2

# retrieving only single items from device is not possible
# so just get everything and update sh.py items
Expand Down

0 comments on commit c1781aa

Please sign in to comment.