diff --git a/homeassistant/components/moehlenhoff_alpha2/climate.py b/homeassistant/components/moehlenhoff_alpha2/climate.py index 73738e784815..9f00220ebbda 100644 --- a/homeassistant/components/moehlenhoff_alpha2/climate.py +++ b/homeassistant/components/moehlenhoff_alpha2/climate.py @@ -5,10 +5,11 @@ from typing import Any, override from homeassistant.components.climate import ( ClimateEntity, ClimateEntityFeature, + ClimateServiceArgument, HVACAction, HVACMode, ) -from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature +from homeassistant.const import UnitOfTemperature from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from homeassistant.helpers.update_coordinator import CoordinatorEntity @@ -106,7 +107,9 @@ class Alpha2Climate(CoordinatorEntity[Alpha2BaseCoordinator], ClimateEntity): @override async def async_set_temperature(self, **kwargs: Any) -> None: """Set new target temperatures.""" - if (target_temperature := kwargs.get(ATTR_TEMPERATURE)) is None: + if ( + target_temperature := kwargs.get(ClimateServiceArgument.TEMPERATURE) + ) is None: return await self.coordinator.async_set_target_temperature(