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

Fix Cooker Normal5: get_prop only works if "all" properties are requested (Closes: #380) #389

Merged
merged 3 commits into from
Oct 8, 2018

Conversation

syssi
Copy link
Collaborator

@syssi syssi commented Oct 8, 2018

No description provided.

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.

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)

@coveralls
Copy link

coveralls commented Oct 8, 2018

Coverage Status

Coverage remained the same at 73.1% when pulling 443f888 on syssi:feature/fix-cooker-normal5 into 8569e75 on rytilahti:master.

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

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing whitespace

@syssi syssi merged commit 8eb7097 into rytilahti:master Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants