Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
__pycache__/
__pycache__/
.idea
3 changes: 2 additions & 1 deletion custom_components/tech/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def __init__(self, device, api, config_entry):
self._config_entry = config_entry
self._api = api
self._id = device["zone"]["id"]
self._uuid = config_entry.data["udid"] + "_" + str(device["zone"]["id"])
self.update_properties(device)

def update_properties(self, device):
Expand Down Expand Up @@ -78,7 +79,7 @@ def update_properties(self, device):
@property
def unique_id(self) -> str:
"""Return a unique ID."""
return self._id
return self._uuid

@property
def name(self):
Expand Down