Skip to content

Commit

Permalink
align config and status to new rpc calls return value
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 committed Dec 17, 2024
1 parent 3d36be7 commit b16f4ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aioshelly/rpc_device/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,5 +557,5 @@ async def _retrieve_blutrv_components(self, components: dict[str, Any]) -> None:
("BluTrv.GetRemoteStatus", {"id": _key[1]}),
]
results = await self.call_rpc_multiple(calls)
self._config.update({component["key"]: results[0]})
self._status.update({component["key"]: results[1]})
self._config.update({component["key"]: results[0]["config"]["trv:0"]})
self._status.update({component["key"]: results[1]["status"]["trv:0"]})

0 comments on commit b16f4ce

Please sign in to comment.