Add TURN_ON/OFF ClimateEntityFeature for Advantage Air (#108971)

pull/109150/head
G Johansson 2024-01-30 18:13:30 +01:00 committed by GitHub
parent 8f9969131b
commit 8395992dbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -88,7 +88,11 @@ class AdvantageAirAC(AdvantageAirAcEntity, ClimateEntity):
"""Initialize an AdvantageAir AC unit."""
super().__init__(instance, ac_key)
self._attr_supported_features = ClimateEntityFeature.FAN_MODE
self._attr_supported_features = (
ClimateEntityFeature.FAN_MODE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
)
self._attr_hvac_modes = [
HVACMode.OFF,
HVACMode.COOL,