mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Increase Z-Wave fallback thermostat range to 0-50 C (#128543)
* Z-Wave JS: Increase fallback thermostat range to 0-50 C * update test
This commit is contained in:
parent
b018d4a97d
commit
ca703cb858
@ -24,8 +24,6 @@ from homeassistant.components.climate import (
|
|||||||
ATTR_HVAC_MODE,
|
ATTR_HVAC_MODE,
|
||||||
ATTR_TARGET_TEMP_HIGH,
|
ATTR_TARGET_TEMP_HIGH,
|
||||||
ATTR_TARGET_TEMP_LOW,
|
ATTR_TARGET_TEMP_LOW,
|
||||||
DEFAULT_MAX_TEMP,
|
|
||||||
DEFAULT_MIN_TEMP,
|
|
||||||
DOMAIN as CLIMATE_DOMAIN,
|
DOMAIN as CLIMATE_DOMAIN,
|
||||||
PRESET_NONE,
|
PRESET_NONE,
|
||||||
ClimateEntity,
|
ClimateEntity,
|
||||||
@ -421,7 +419,7 @@ class ZWaveClimate(ZWaveBaseEntity, ClimateEntity):
|
|||||||
@property
|
@property
|
||||||
def min_temp(self) -> float:
|
def min_temp(self) -> float:
|
||||||
"""Return the minimum temperature."""
|
"""Return the minimum temperature."""
|
||||||
min_temp = DEFAULT_MIN_TEMP
|
min_temp = 0.0 # Not using DEFAULT_MIN_TEMP to allow wider range
|
||||||
base_unit: str = UnitOfTemperature.CELSIUS
|
base_unit: str = UnitOfTemperature.CELSIUS
|
||||||
try:
|
try:
|
||||||
temp = self._setpoint_value_or_raise(self._current_mode_setpoint_enums[0])
|
temp = self._setpoint_value_or_raise(self._current_mode_setpoint_enums[0])
|
||||||
@ -437,7 +435,7 @@ class ZWaveClimate(ZWaveBaseEntity, ClimateEntity):
|
|||||||
@property
|
@property
|
||||||
def max_temp(self) -> float:
|
def max_temp(self) -> float:
|
||||||
"""Return the maximum temperature."""
|
"""Return the maximum temperature."""
|
||||||
max_temp = DEFAULT_MAX_TEMP
|
max_temp = 50.0 # Not using DEFAULT_MAX_TEMP to allow wider range
|
||||||
base_unit: str = UnitOfTemperature.CELSIUS
|
base_unit: str = UnitOfTemperature.CELSIUS
|
||||||
try:
|
try:
|
||||||
temp = self._setpoint_value_or_raise(self._current_mode_setpoint_enums[0])
|
temp = self._setpoint_value_or_raise(self._current_mode_setpoint_enums[0])
|
||||||
|
@ -812,8 +812,8 @@ async def test_thermostat_heatit_z_trm2fx(
|
|||||||
| ClimateEntityFeature.TURN_OFF
|
| ClimateEntityFeature.TURN_OFF
|
||||||
| ClimateEntityFeature.TURN_ON
|
| ClimateEntityFeature.TURN_ON
|
||||||
)
|
)
|
||||||
assert state.attributes[ATTR_MIN_TEMP] == 7
|
assert state.attributes[ATTR_MIN_TEMP] == 0
|
||||||
assert state.attributes[ATTR_MAX_TEMP] == 35
|
assert state.attributes[ATTR_MAX_TEMP] == 50
|
||||||
|
|
||||||
# Try switching to external sensor
|
# Try switching to external sensor
|
||||||
event = Event(
|
event = Event(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user