mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 23:07:09 +00:00
Tweak evohome to handle older TCC-compatible systems (#142226)
Handle zone.id == TCS.id
This commit is contained in:
parent
93418f587c
commit
79fe8650f8
@ -152,7 +152,7 @@ class EvoZone(EvoChild, EvoClimateEntity):
|
|||||||
super().__init__(coordinator, evo_device)
|
super().__init__(coordinator, evo_device)
|
||||||
self._evo_id = evo_device.id
|
self._evo_id = evo_device.id
|
||||||
|
|
||||||
if evo_device.model.startswith("VisionProWifi"):
|
if evo_device.id == evo_device.tcs.id:
|
||||||
# this system does not have a distinct ID for the zone
|
# this system does not have a distinct ID for the zone
|
||||||
self._attr_unique_id = f"{evo_device.id}z"
|
self._attr_unique_id = f"{evo_device.id}z"
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user