Adds new climate feature flags to elkm1 (#109543)

pull/109546/head
G Johansson 2024-02-03 18:46:47 -05:00 committed by GitHub
parent 63da42f394
commit a7b52c8dd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,8 @@ class ElkThermostat(ElkEntity, ClimateEntity):
ClimateEntityFeature.FAN_MODE
| ClimateEntityFeature.AUX_HEAT
| ClimateEntityFeature.TARGET_TEMPERATURE_RANGE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
)
_attr_min_temp = 1
_attr_max_temp = 99
@ -87,6 +89,7 @@ class ElkThermostat(ElkEntity, ClimateEntity):
_attr_target_temperature_step = 1
_attr_fan_modes = [FAN_AUTO, FAN_ON]
_element: Thermostat
_enable_turn_on_off_backwards_compatibility = False
@property
def temperature_unit(self) -> str: