Remove hvac_action for Somfy Thermostat (#73776)

This commit is contained in:
Thibaut 2022-06-21 10:22:06 +02:00 committed by GitHub
parent ad2a41f774
commit c674af3ba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,6 @@ from homeassistant.components.climate.const import (
PRESET_HOME, PRESET_HOME,
PRESET_NONE, PRESET_NONE,
ClimateEntityFeature, ClimateEntityFeature,
HVACAction,
HVACMode, HVACMode,
) )
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS
@ -83,15 +82,6 @@ class SomfyThermostat(OverkizEntity, ClimateEntity):
) )
] ]
@property
def hvac_action(self) -> str:
"""Return the current running hvac operation if supported."""
if not self.current_temperature or not self.target_temperature:
return HVACAction.IDLE
if self.current_temperature < self.target_temperature:
return HVACAction.HEATING
return HVACAction.IDLE
@property @property
def preset_mode(self) -> str: def preset_mode(self) -> str:
"""Return the current preset mode, e.g., home, away, temp.""" """Return the current preset mode, e.g., home, away, temp."""