Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wtom committed Sep 15, 2023
1 parent d226960 commit 50d9924
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion custom_components/better_thermostat/adapters/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ async def set_offset(self, entity_id, offset):
and self.real_trvs[entity_id]["last_hvac_mode"] != "off"
):
await asyncio.sleep(3)
await self.set_hvac_mode(entity_id, self.real_trvs[entity_id]["last_hvac_mode"])
await set_hvac_mode(
self, entity_id, self.real_trvs[entity_id]["last_hvac_mode"]
)

return offset
else:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/better_thermostat/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ async def find_local_calibration_entity(self, entity_id):
entity_registry, reg_entity.config_entry_id
)
for entity in entity_entries:
uid = entity.unique_id
uid = entity.unique_id + " " + entity.entity_id
# Make sure we use the correct device entities
if entity.device_id == reg_entity.device_id:
if "temperature_calibration" in uid or "temperature_offset" in uid:
Expand Down

0 comments on commit 50d9924

Please sign in to comment.