mirror of
https://github.com/mjg59/python-broadlink.git
synced 2024-11-10 18:00:12 +01:00
Fix SP4 class (#445)
This commit is contained in:
parent
a31d766d33
commit
e1fa54f874
@ -246,11 +246,11 @@ class sp4(device):
|
||||
"""Set state of device."""
|
||||
data = {}
|
||||
if pwr is not None:
|
||||
data["pwr"] = pwr
|
||||
data["pwr"] = int(bool(pwr))
|
||||
if ntlight is not None:
|
||||
data["ntlight"] = ntlight
|
||||
data["ntlight"] = int(bool(ntlight))
|
||||
if indicator is not None:
|
||||
data["indicator"] = indicator
|
||||
data["indicator"] = int(bool(indicator))
|
||||
if ntlbrightness is not None:
|
||||
data["ntlbrightness"] = ntlbrightness
|
||||
if maxworktime is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user