Skip to content

Commit

Permalink
merge missing data
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 committed Dec 17, 2024
1 parent b16f4ce commit ed115f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aioshelly/rpc_device/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,5 +557,11 @@ 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]["config"]["trv:0"]})

cfg: dict[str, Any] = results[0]["config"]["trv:0"]
# addr and name must be added from Shelly.GetComponents call
# model_id can't be retrieved, remote device call (TRV.GetConfig) needed
cfg.update({"addr": component["config"]["addr"]})
cfg.update({"name": component["config"]["name"]})
self._config.update({component["key"]: cfg})
self._status.update({component["key"]: results[1]["status"]["trv:0"]})

0 comments on commit ed115f4

Please sign in to comment.