mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Handle renaming of evohome zones (#108089)
This commit is contained in:
parent
d4739cfa5c
commit
7deebf8817
@ -182,8 +182,6 @@ class EvoZone(EvoChild, EvoClimateEntity):
|
|||||||
else:
|
else:
|
||||||
self._attr_unique_id = evo_device.zoneId
|
self._attr_unique_id = evo_device.zoneId
|
||||||
|
|
||||||
self._attr_name = evo_device.name
|
|
||||||
|
|
||||||
if evo_broker.client_v1:
|
if evo_broker.client_v1:
|
||||||
self._attr_precision = PRECISION_TENTHS
|
self._attr_precision = PRECISION_TENTHS
|
||||||
else:
|
else:
|
||||||
@ -219,6 +217,11 @@ class EvoZone(EvoChild, EvoClimateEntity):
|
|||||||
self._evo_device.set_temperature(temperature, until=until)
|
self._evo_device.set_temperature(temperature, until=until)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def name(self) -> str | None:
|
||||||
|
"""Return the name of the evohome entity."""
|
||||||
|
return self._evo_device.name # zones can be easily renamed
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hvac_mode(self) -> HVACMode | None:
|
def hvac_mode(self) -> HVACMode | None:
|
||||||
"""Return the current operating mode of a Zone."""
|
"""Return the current operating mode of a Zone."""
|
||||||
|
@ -89,6 +89,7 @@ class EvoDHW(EvoChild, WaterHeaterEntity):
|
|||||||
self._evo_id = evo_device.dhwId
|
self._evo_id = evo_device.dhwId
|
||||||
|
|
||||||
self._attr_unique_id = evo_device.dhwId
|
self._attr_unique_id = evo_device.dhwId
|
||||||
|
self._attr_name = evo_device.name # is static
|
||||||
|
|
||||||
self._attr_precision = (
|
self._attr_precision = (
|
||||||
PRECISION_TENTHS if evo_broker.client_v1 else PRECISION_WHOLE
|
PRECISION_TENTHS if evo_broker.client_v1 else PRECISION_WHOLE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user