Skip to content

Commit d653eb3

Browse files
committed
For a full-update init with empty dicts
1 parent b6ae3d4 commit d653eb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugwise/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,8 @@ async def async_update(self) -> PlugwiseData:
518518
# Perform a full update at day-change
519519
if (new := dt.datetime.now().strftime("%w")) != self._previous:
520520
self._previous = new
521+
self.gw_data: GatewayData = {}
522+
self.gw_devices: dict[str, DeviceData] = {}
521523
await self._full_update_device()
522524
self.get_all_devices()
523525
# Otherwise perform an incremental update

0 commit comments

Comments
 (0)