Skip to content

Commit

Permalink
switch to cached replies
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 committed Dec 17, 2024
1 parent 4c7e178 commit 3d36be7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions aioshelly/rpc_device/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,14 +553,8 @@ async def _retrieve_blutrv_components(self, components: dict[str, Any]) -> None:
_key = component["key"].split(":")
if _key[0] == "blutrv":
calls = [
(
"BluTRV.Call",
{"id": _key[1], "method": "Trv.GetConfig", "params": {"id": 0}},
),
(
"BluTRV.Call",
{"id": _key[1], "method": "Trv.GetStatus", "params": {"id": 0}},
),
("BluTrv.GetRemoteConfig", {"id": _key[1]}),
("BluTrv.GetRemoteStatus", {"id": _key[1]}),
]
results = await self.call_rpc_multiple(calls)
self._config.update({component["key"]: results[0]})
Expand Down

0 comments on commit 3d36be7

Please sign in to comment.