mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Use climate min/max temp from sauna configuration in Huum (#148955)
This commit is contained in:
parent
40cabc8d70
commit
17920b6ec3
@ -46,8 +46,6 @@ class HuumDevice(CoordinatorEntity[HuumDataUpdateCoordinator], ClimateEntity):
|
|||||||
)
|
)
|
||||||
_attr_target_temperature_step = PRECISION_WHOLE
|
_attr_target_temperature_step = PRECISION_WHOLE
|
||||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||||
_attr_max_temp = 110
|
|
||||||
_attr_min_temp = 40
|
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_name = None
|
_attr_name = None
|
||||||
|
|
||||||
@ -63,6 +61,16 @@ class HuumDevice(CoordinatorEntity[HuumDataUpdateCoordinator], ClimateEntity):
|
|||||||
model="UKU WiFi",
|
model="UKU WiFi",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def min_temp(self) -> int:
|
||||||
|
"""Return configured minimal temperature."""
|
||||||
|
return self.coordinator.data.sauna_config.min_temp
|
||||||
|
|
||||||
|
@property
|
||||||
|
def max_temp(self) -> int:
|
||||||
|
"""Return configured maximum temperature."""
|
||||||
|
return self.coordinator.data.sauna_config.max_temp
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hvac_mode(self) -> HVACMode:
|
def hvac_mode(self) -> HVACMode:
|
||||||
"""Return hvac operation ie. heat, cool mode."""
|
"""Return hvac operation ie. heat, cool mode."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user