From c1781aa8eedc933e5e9b73e6339b6ca2c6b3e18a Mon Sep 17 00:00:00 2001 From: Morg42 <43153739+Morg42@users.noreply.github.com> Date: Fri, 13 Oct 2023 13:23:20 +0200 Subject: [PATCH] yamahayxc: fix status info updates --- yamahayxc/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yamahayxc/__init__.py b/yamahayxc/__init__.py index db637283a..a2ec97899 100755 --- a/yamahayxc/__init__.py +++ b/yamahayxc/__init__.py @@ -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