File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ def get_all_devices(self) -> None:
308308
309309 async def async_update (self ) -> PlugwiseData :
310310 """Perform an incremental update for updating the various device states."""
311- data = PlugwiseData ({}, {}, {})
311+ data = PlugwiseData (devices = {}, gateway = {}, zones = {})
312312 try :
313313 data = await self ._smile_api .async_update ()
314314 self .gateway_id = data .gateway ["gateway_id" ]
Original file line number Diff line number Diff line change @@ -136,8 +136,8 @@ async def async_update(self) -> PlugwiseData:
136136
137137 self ._previous_day_number = day_number
138138 return PlugwiseData (
139- gateway = self .gw_data ,
140139 devices = self .gw_devices ,
140+ gateway = self .gw_data ,
141141 zones = self .zone_data ,
142142 )
143143
Original file line number Diff line number Diff line change @@ -141,8 +141,8 @@ async def async_update(self) -> PlugwiseData:
141141 raise DataMissingError ("No Plugwise data received" ) from err
142142
143143 return PlugwiseData (
144- gateway = self .gw_data ,
145144 devices = self .gw_devices ,
145+ gateway = self .gw_data ,
146146 zones = self .zone_data ,
147147 )
148148
You can’t perform that action at this time.
0 commit comments