Skip to content

Commit 538b096

Browse files
committed
async_update(): correct for plugwise notifications, and for future,
we could only collect from domain_object because all data is present in /core/domain_objects
1 parent 6d9cb8a commit 538b096

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugwise/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,17 +505,16 @@ async def _update_domain_objects(self) -> None:
505505

506506
async def async_update(self) -> PlugwiseData:
507507
"""Perform an incremental update for updating the various device states."""
508+
await self._update_domain_objects()
508509
match self._target_smile:
509510
case "smile_v2":
510511
self._modules = await self._request(MODULES)
511512
case "smile_v3" | "smile_v4":
512513
self._locations = await self._request(LOCATIONS)
513514
case "smile_thermo_v1" | "smile_thermo_v3" | "smile_thermo_v4":
514515
self._appliances = await self._request(APPLIANCES)
515-
await self._update_domain_objects()
516516
case "smile_open_therm_v2" | "smile_open_therm_v3":
517517
self._appliances = await self._request(APPLIANCES)
518-
await self._update_domain_objects()
519518
self._modules = await self._request(MODULES)
520519
case "stretch_v2" | "stretch_v3":
521520
self._appliances = await self._request(APPLIANCES)

0 commit comments

Comments
 (0)