Skip to content

Commit 17920b6

Browse files
Use climate min/max temp from sauna configuration in Huum (home-assistant#148955)
1 parent 40cabc8 commit 17920b6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

homeassistant/components/huum/climate.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ class HuumDevice(CoordinatorEntity[HuumDataUpdateCoordinator], ClimateEntity):
4646
)
4747
_attr_target_temperature_step = PRECISION_WHOLE
4848
_attr_temperature_unit = UnitOfTemperature.CELSIUS
49-
_attr_max_temp = 110
50-
_attr_min_temp = 40
5149
_attr_has_entity_name = True
5250
_attr_name = None
5351

@@ -63,6 +61,16 @@ def __init__(self, coordinator: HuumDataUpdateCoordinator) -> None:
6361
model="UKU WiFi",
6462
)
6563

64+
@property
65+
def min_temp(self) -> int:
66+
"""Return configured minimal temperature."""
67+
return self.coordinator.data.sauna_config.min_temp
68+
69+
@property
70+
def max_temp(self) -> int:
71+
"""Return configured maximum temperature."""
72+
return self.coordinator.data.sauna_config.max_temp
73+
6674
@property
6775
def hvac_mode(self) -> HVACMode:
6876
"""Return hvac operation ie. heat, cool mode."""

0 commit comments

Comments
 (0)