We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 619e2d8 commit 566f266Copy full SHA for 566f266
1 file changed
plugwise/legacy/helper.py
@@ -294,8 +294,8 @@ def _get_measurement_data(self, entity_id: str) -> GwEntityData:
294
if appliance.find("type").text in ACTUATOR_CLASSES:
295
self._get_actuator_functionalities(appliance, entity, data)
296
297
- # Anna: the Smile outdoor_temperature is present in DOMAIN_OBJECTS or LOCATIONS - under Home
298
- # Some Anna's have an empty LOCATIONS!
+ # Anna: the Smile outdoor_temperature is present in the Home location
+ # For some Anna's LOCATIONS is empty, falling back to domain_objects!
299
if self._is_thermostat and entity_id == self.gateway_id:
300
locator = f"./location[@id='{self._home_loc_id}']/logs/point_log[type='outdoor_temperature']/period/measurement"
301
if (found := self._domain_objects.find(locator)) is not None:
0 commit comments