Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiaomi Humidifier CA4 fail to read status. (zhimi.humidifier.ca4) #908

Closed
tierman opened this issue Jan 12, 2021 · 0 comments · Fixed by #971
Closed

Xiaomi Humidifier CA4 fail to read status. (zhimi.humidifier.ca4) #908

tierman opened this issue Jan 12, 2021 · 0 comments · Fixed by #971
Assignees
Labels

Comments

@tierman
Copy link

tierman commented Jan 12, 2021

In file airhumidifier_miot.py in class AirHumidifierMiotStatus is a string builder with self.fault - unresolved reference.

Probably You can add property:

@property
def fault(self) -> int:
    """Return fault code."""
    return self.data["fault"]

and resolve this issue.

@tierman tierman added the bug label Jan 12, 2021
@syssi syssi self-assigned this Jan 13, 2021
syssi added a commit to syssi/python-miio that referenced this issue Jan 13, 2021
@syssi syssi closed this as completed in 9c57999 Jan 13, 2021
rytilahti pushed a commit that referenced this issue Jan 13, 2021
…910)

* Fix __repr__ of AirHumidifierMiotStatus (Closes: #908)

* Improve miottemplate.py print to support python 3.7.3
xvlady pushed a commit to xvlady/python-miio that referenced this issue May 9, 2021
…hti#906) (rytilahti#910)

* Fix __repr__ of AirHumidifierMiotStatus (Closes: rytilahti#908)

* Improve miottemplate.py print to support python 3.7.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants