-
-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix Cooker Normal5: get_prop only works if "all" properties are requested (Closes: #380) #389
Conversation
…es are requested (Closes: rytilahti#380)
miio/cooker.py
Outdated
@@ -726,7 +726,10 @@ def status(self) -> CookerStatus: | |||
"""Retrieve properties.""" | |||
properties = ['func', 'menu', 'stage', 'temp', 't_func', 't_precook', | |||
't_cook', 'setting', 'delay', 'version', 'favorite', 'custom'] | |||
values = self.send("get_prop", properties) | |||
|
|||
# Some cookers doesn't support a list of properties here. Therefore "all" properties are requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (107 > 100 characters)
miio/cooker.py
Outdated
|
||
""" | ||
Some cookers doesn't support a list of properties here. Therefore "all" properties | ||
are requested. If the property count or order changes the property list above must |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing whitespace
miio/cooker.py
Outdated
values = self.send("get_prop", properties) | ||
|
||
""" | ||
Some cookers doesn't support a list of properties here. Therefore "all" properties |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing whitespace
No description provided.