Skip to content

Commit 566f266

Browse files
committed
Improve comment
1 parent 619e2d8 commit 566f266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/legacy/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ def _get_measurement_data(self, entity_id: str) -> GwEntityData:
294294
if appliance.find("type").text in ACTUATOR_CLASSES:
295295
self._get_actuator_functionalities(appliance, entity, data)
296296

297-
# Anna: the Smile outdoor_temperature is present in DOMAIN_OBJECTS or LOCATIONS - under Home
298-
# Some Anna's have an empty LOCATIONS!
297+
# Anna: the Smile outdoor_temperature is present in the Home location
298+
# For some Anna's LOCATIONS is empty, falling back to domain_objects!
299299
if self._is_thermostat and entity_id == self.gateway_id:
300300
locator = f"./location[@id='{self._home_loc_id}']/logs/point_log[type='outdoor_temperature']/period/measurement"
301301
if (found := self._domain_objects.find(locator)) is not None:

0 commit comments

Comments
 (0)