From 3d36be73d773aa42e850817207f013dd35e0b71f Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Mon, 16 Dec 2024 19:05:30 +0000 Subject: [PATCH] switch to cached replies --- aioshelly/rpc_device/device.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/aioshelly/rpc_device/device.py b/aioshelly/rpc_device/device.py index e62367c4..7412e895 100644 --- a/aioshelly/rpc_device/device.py +++ b/aioshelly/rpc_device/device.py @@ -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]})