-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
Conversation
miio/tests/test_plug_v3.py
Outdated
|
||
self.device.set_wifi_led(False) | ||
assert wifi_led() is False | ||
|
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.
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"]) | ||
|
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.
blank line at end of file
miio/plug_v3.py
Outdated
|
||
_LOGGER = logging.getLogger(__name__) | ||
|
||
class PlugV3Status: |
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.
expected 2 blank lines, found 1
Would you like to get this into the next release or shall it wait? |
"count (%s) of received values.", | ||
properties_count, values_count) | ||
|
||
load_power = self.send("get_power", []) # Response: [300] |
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.
@rytilahti This is the only exotic part. Feel free to merge.
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.
Ok, let's merge this for the next release and check later if we can generalize the plugs at some later point.
No description provided.