Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions lazylights.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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):
Expand Down