From 515db83f1962e7209a234b404ad426289084ae66 Mon Sep 17 00:00:00 2001 From: Sebastien Lavoie Date: Sun, 29 Mar 2026 08:52:00 -0400 Subject: [PATCH] fix: remove unused ATTR_TEMPERATURE import, add @callback to supported_features Co-Authored-By: Claude Sonnet 4.6 --- custom_components/dkncloudna/climate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/dkncloudna/climate.py b/custom_components/dkncloudna/climate.py index 2a11680..6774348 100644 --- a/custom_components/dkncloudna/climate.py +++ b/custom_components/dkncloudna/climate.py @@ -9,8 +9,8 @@ from homeassistant.components.climate import ( ClimateEntityFeature, HVACMode, ) -from homeassistant.const import ATTR_TEMPERATURE, PRECISION_WHOLE, UnitOfTemperature -from homeassistant.core import HomeAssistant +from homeassistant.const import PRECISION_WHOLE, UnitOfTemperature +from homeassistant.core import HomeAssistant, callback from homeassistant.config_entries import ConfigEntry from homeassistant.helpers.entity_platform import AddEntitiesCallback @@ -95,6 +95,7 @@ class DknClimateEntity(DknEntity, ClimateEntity): super().__init__(coordinator, mac) self._attr_unique_id = f"{DOMAIN}_{mac}" + @callback @property def supported_features(self) -> ClimateEntityFeature: """Return feature flags appropriate for the current HVAC mode."""