Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bouwew committed Dec 22, 2024
1 parent 619e2d8 commit 566f266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugwise/legacy/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ def _get_measurement_data(self, entity_id: str) -> GwEntityData:
if appliance.find("type").text in ACTUATOR_CLASSES:
self._get_actuator_functionalities(appliance, entity, data)

# Anna: the Smile outdoor_temperature is present in DOMAIN_OBJECTS or LOCATIONS - under Home
# 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!
if self._is_thermostat and entity_id == self.gateway_id:
locator = f"./location[@id='{self._home_loc_id}']/logs/point_log[type='outdoor_temperature']/period/measurement"
if (found := self._domain_objects.find(locator)) is not None:
Expand Down

0 comments on commit 566f266

Please sign in to comment.