diff --git a/custom_components/midea_ac_lan/humidifier.py b/custom_components/midea_ac_lan/humidifier.py index 7c649b63..0319f7d8 100644 --- a/custom_components/midea_ac_lan/humidifier.py +++ b/custom_components/midea_ac_lan/humidifier.py @@ -87,8 +87,8 @@ def update_state(self, status: Any) -> None: class MideaA1Humidifier(MideaHumidifier): def __init__(self, device: Any, entity_key: str) -> None: super().__init__(device, entity_key) - self._min_humidity: float = 35 - self._max_humidity: float = 85 + self._attr_min_humidity: float = 35 + self._attr_max_humidity: float = 85 @property def device_class(self) -> HumidifierDeviceClass: @@ -102,8 +102,8 @@ def supported_features(self) -> HumidifierEntityFeature: class MideaFDHumidifier(MideaHumidifier): def __init__(self, device: Any, entity_key: str) -> None: super().__init__(device, entity_key) - self._min_humidity: float = 35 - self._max_humidity: float = 85 + self._attr_min_humidity: float = 35 + self._attr_max_humidity: float = 85 @property def device_class(self) -> HumidifierDeviceClass: