diff --git a/custom_components/remeha_home/climate.py b/custom_components/remeha_home/climate.py index feb1def..7d99123 100644 --- a/custom_components/remeha_home/climate.py +++ b/custom_components/remeha_home/climate.py @@ -75,8 +75,12 @@ async def async_setup_entry( class RemehaHomeClimateEntity(CoordinatorEntity, ClimateEntity): """Climate entity representing a Remeha Home climate zone.""" + _enable_turn_on_off_backwards_compatibility = False _attr_supported_features = ( - ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.PRESET_MODE + ClimateEntityFeature.TARGET_TEMPERATURE + | ClimateEntityFeature.PRESET_MODE + | ClimateEntityFeature.TURN_OFF + | ClimateEntityFeature.TURN_ON ) _attr_temperature_unit = UnitOfTemperature.CELSIUS _attr_precision = PRECISION_HALVES diff --git a/custom_components/remeha_home/coordinator.py b/custom_components/remeha_home/coordinator.py index f26ca58..c6bb0f8 100644 --- a/custom_components/remeha_home/coordinator.py +++ b/custom_components/remeha_home/coordinator.py @@ -5,8 +5,8 @@ import async_timeout from aiohttp.client_exceptions import ClientResponseError +from homeassistant.core import HomeAssistant from homeassistant.helpers.entity import DeviceInfo -from homeassistant.helpers.typing import HomeAssistantType from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed from homeassistant.exceptions import ConfigEntryAuthFailed @@ -19,7 +19,7 @@ class RemehaHomeUpdateCoordinator(DataUpdateCoordinator): """Remeha Home update coordinator.""" - def __init__(self, hass: HomeAssistantType, api: RemehaHomeAPI) -> None: + def __init__(self, hass: HomeAssistant, api: RemehaHomeAPI) -> None: """Initialize Remeha Home update coordinator.""" super().__init__( hass,