Skip to content

Commit

Permalink
Merge pull request #37 from hmmbob/patch-1
Browse files Browse the repository at this point in the history
Add unique_id to Toon Climate
  • Loading branch information
cyberjunky authored Feb 3, 2022
2 parents df7e7d7 + 3bf61b4 commit 0d6c5ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/toon_climate/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def __init__(self, session, config) -> None:
self._max_temp = (config.get(CONF_MAX_TEMP)
if config.get(CONF_MAX_TEMP) <= DEFAULT_MAX_TEMP
else DEFAULT_MAX_TEMP)
self._attr_unique_id = f"climate_{self._name}_{self._host}"

"""
Standard thermostat data for the first and second edition of Toon
Expand Down

0 comments on commit 0d6c5ef

Please sign in to comment.