diff --git a/README.md b/README.md index 0933e45..d8659a9 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Lazylights is a Python API for controlling Lifx bulbs. To install, ```shell -pip install git+https://github.com/mpapi/lazylights +pip install git+https://github.com/mpapi/lazylights@2.0 ``` Then, in Python, diff --git a/lazylights.py b/lazylights.py index 9ca2e4b..4382d21 100644 --- a/lazylights.py +++ b/lazylights.py @@ -10,7 +10,7 @@ _SOCKET_BUFFER_SIZE = 65536 -ALL_BULBS = '\x00' * 6 +ALL_BULBS = b'\x00' * 6 LIFX_PORT = 56700 ADDR_BROADCAST = ('255.255.255.255', LIFX_PORT) @@ -163,7 +163,7 @@ def set_power(bulbs, is_on): otherwise. """ _send(bulbs, REQ_SET_POWER_STATE, '2s', - '\xff\xff' if is_on else '\x00\x00') + b'\xff\xff' if is_on else b'\x00\x00') def set_state(bulbs, hue, saturation, brightness, kelvin, fade, raw=False):