Add new climate feature flags to hive (#109553)

Adds new climate feature flags to hive
pull/109883/head
G Johansson 2024-02-03 20:27:42 -05:00 committed by Franck Nijhof
parent bf4bc9d935
commit 4d7abbf8c5
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 5 additions and 1 deletions

View File

@ -92,8 +92,12 @@ class HiveClimateEntity(HiveEntity, ClimateEntity):
_attr_hvac_modes = [HVACMode.AUTO, HVACMode.HEAT, HVACMode.OFF]
_attr_preset_modes = [PRESET_BOOST, PRESET_NONE]
_attr_supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.PRESET_MODE
ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.PRESET_MODE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
)
_enable_turn_on_off_backwards_compatibility = False
def __init__(self, hive_session, hive_device):
"""Initialize the Climate device."""