Skip to content

Commit

Permalink
Merge branch 'release/0.5.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Dec 27, 2021
2 parents 6eb32cb + 655b7a3 commit d430358
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions custom_components/xiaomi_miio_fan/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ def available(self):
return self._available

@property
def device_state_attributes(self):
"""Return the state attributes of the device."""
def extra_state_attributes(self):
"""Return the extra state attributes of the device."""
return self._state_attrs

@property
Expand Down Expand Up @@ -1329,7 +1329,6 @@ def __init__(self, name, device, model, unique_id, retries, preset_modes_overrid
self._preset_modes = list(FAN_PRESET_MODES_ZA5)
if preset_modes_override is not None:
self._preset_modes = preset_modes_override


self._state_attrs.update(
{attribute: None for attribute in self._available_attributes}
Expand Down Expand Up @@ -1672,8 +1671,7 @@ def __init__(
lazy_discover: bool = True,
model: str = MODEL_FAN_ZA5,
) -> None:
super().__init__(ip, token, start_id, debug, lazy_discover)
self.model = model
super().__init__(ip, token, start_id, debug, lazy_discover, model=model)

def status(self):
"""Retrieve properties."""
Expand Down
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miio_fan/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "xiaomi_miio_fan",
"name": "Xiaomi Mi Smart Pedestal Fan",
"version": "0.5.3",
"version": "0.5.4",
"iot_class": "local_polling",
"documentation": "https://github.com/syssi/xiaomi_fan",
"issue_tracker": "https://github.com/syssi/xiaomi_fan/issues",
Expand Down

0 comments on commit d430358

Please sign in to comment.