@@ -484,16 +484,19 @@ async def getCloudDeviceDetails(self):
484
484
485
485
async def getCloudDevices (self ):
486
486
"""Get array of DaikinResidentialDevice objects and get their data."""
487
- json_data = await self .getCloudDeviceDetails ()
487
+ self . json_data = await self .getCloudDeviceDetails ()
488
488
res = {}
489
- for dev_data in json_data or []:
489
+ for dev_data in self . json_data or []:
490
490
device = Appliance (dev_data , self )
491
491
gateway_model = device .get_value ("gateway" , "modelInfo" )
492
492
device_model = device .desc ["deviceModel" ]
493
493
if gateway_model is None :
494
494
_LOGGER .warning ("Device with ID '%s' is filtered out" , dev_data ["id" ])
495
495
elif device_model == "Altherma" :
496
- _LOGGER .warning ("Device with ID '%s' is filtered out because it is an Altherma" , dev_data ["id" ])
496
+ _LOGGER .warning (
497
+ "Device with ID '%s' is filtered out because it is an Altherma" ,
498
+ dev_data ["id" ],
499
+ )
497
500
else :
498
501
res [dev_data ["id" ]] = device
499
502
return res
@@ -508,8 +511,8 @@ async def async_update(self, **kwargs):
508
511
509
512
_LOGGER .debug ("API UPDATE" )
510
513
511
- json_data = await self .getCloudDeviceDetails ()
512
- for dev_data in json_data or []:
514
+ self . json_data = await self .getCloudDeviceDetails ()
515
+ for dev_data in self . json_data or []:
513
516
if dev_data ["id" ] in self .hass .data [DOMAIN ][DAIKIN_DEVICES ]:
514
517
self .hass .data [DOMAIN ][DAIKIN_DEVICES ][dev_data ["id" ]].setJsonData (
515
518
dev_data
0 commit comments