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

Support of the Chuang Mi Plug V3 #257

Merged
merged 7 commits into from
Mar 9, 2018

Conversation

syssi
Copy link
Collaborator

@syssi syssi commented Mar 8, 2018

No description provided.


self.device.set_wifi_led(False)
assert wifi_led() is False

Choose a reason for hiding this comment

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

blank line at end of file

miio/plug_v3.py Outdated
return self.send("set_wifi_led", ["on"])
else:
return self.send("set_wifi_led", ["off"])

Choose a reason for hiding this comment

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

blank line at end of file

miio/plug_v3.py Outdated

_LOGGER = logging.getLogger(__name__)

class PlugV3Status:

Choose a reason for hiding this comment

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

expected 2 blank lines, found 1

@rytilahti
Copy link
Owner

Would you like to get this into the next release or shall it wait?

@coveralls
Copy link

coveralls commented Mar 8, 2018

Coverage Status

Coverage increased (+0.8%) to 68.375% when pulling 027f802 on syssi:feature/chuangmi-plug-v3 into 5a58e83 on rytilahti:master.

@syssi syssi added this to the 0.3.8 milestone Mar 8, 2018
"count (%s) of received values.",
properties_count, values_count)

load_power = self.send("get_power", []) # Response: [300]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@rytilahti This is the only exotic part. Feel free to merge.

Copy link
Owner

Choose a reason for hiding this comment

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

Ok, let's merge this for the next release and check later if we can generalize the plugs at some later point.

@rytilahti rytilahti merged commit 538a547 into rytilahti:master Mar 9, 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.

4 participants