File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,10 @@ def _update_climates(self) -> None:
5656
5757 Collect data for each climate-location and add to self.climate_data.
5858 """
59- LOGGER .debug ("HOI 1 climates: %s" , self .climate_data )
6059 for location_id , climate in self .climate_data .items ():
6160 data = self ._get_location_data (location_id )
6261 climate .update (data )
6362
64-
65-
6663 def _update_gw_devices (self ) -> None :
6764 """Helper-function for _all_device_data() and async_update().
6865
@@ -171,6 +168,8 @@ def _get_location_data(self, loc_id: str) -> DeviceData:
171168 # Thermostat data (presets, temperatures etc)
172169 self ._device_data_climate (loc_id , climate , data )
173170
171+ return data
172+
174173 def _get_device_data (self , dev_id : str ) -> DeviceData :
175174 """Helper-function for _update_gw_devices() and async_update().
176175
Original file line number Diff line number Diff line change @@ -489,13 +489,15 @@ def _get_climate_data(self, loc_id: str) -> ClimateData:
489489 Collect the location-data based on location id.
490490 """
491491 data : ClimateData = {"sensors" : {}}
492+ climate = self .climate_data [loc_id ]
492493 measurements = CLIMATE_MEASUREMENTS
493494 if (
494495 location := self ._domain_objects .find (f'./location[@id="{ loc_id } "]' )
495496 ) is not None :
496497 self ._appliance_measurements (location , data , measurements )
497- if location .find ("type" ).text in ACTUATOR_CLASSES :
498- self ._get_actuator_functionalities (location , device , data )
498+ self ._get_actuator_functionalities (location , climate , data )
499+
500+ return data
499501
500502 def _get_measurement_data (self , dev_id : str ) -> DeviceData :
501503 """Helper-function for smile.py: _get_device_data().
You can’t perform that action at this time.
0 commit comments