Use the action field enums in proliphix (#196066)

This commit is contained in:
epenet
2026-12-02 17:06:04 +02:00
committed by GitHub
parent 36e0aa1c9c
commit 50977ceab9
@@ -9,11 +9,11 @@ from homeassistant.components.climate import (
PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA,
ClimateEntity,
ClimateEntityFeature,
ClimateServiceArgument,
HVACAction,
HVACMode,
)
from homeassistant.const import (
ATTR_TEMPERATURE,
CONF_HOST,
CONF_PASSWORD,
CONF_USERNAME,
@@ -120,6 +120,6 @@ class ProliphixThermostat(ClimateEntity):
@override
def set_temperature(self, **kwargs: Any) -> None:
"""Set new target temperature."""
if (temperature := kwargs.get(ATTR_TEMPERATURE)) is None:
if (temperature := kwargs.get(ClimateServiceArgument.TEMPERATURE)) is None:
return
self._pdp.setback = temperature