Skip to content

Commit

Permalink
fix: use _attr* attribute (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
caibinqing authored Jun 2, 2024
1 parent 719298b commit 447f35f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/midea_ac_lan/humidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 447f35f

Please sign in to comment.