Skip to content

Commit

Permalink
Chuangmi Plug: Fix set_wifi_led cli command (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi authored and rytilahti committed May 2, 2019
1 parent d5e2381 commit 1a8aeb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miio/chuangmi_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ def usb_off(self):
if wifi_led else "Turning off WiFi LED"
)
)
def set_wifi_led(self, led: bool):
def set_wifi_led(self, wifi_led: bool):
"""Set the wifi led on/off."""
if led:
if wifi_led:
return self.send("set_wifi_led", ["on"])
else:
return self.send("set_wifi_led", ["off"])
Expand Down

0 comments on commit 1a8aeb8

Please sign in to comment.