mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Update for new liffylights release
Fix incorrect packet timeout/ack code causing flooding when no bulbs were online, which consumed all WorkerPool threads
This commit is contained in:
parent
f76dee8a05
commit
1974eda51d
@ -28,7 +28,7 @@ from homeassistant.components.light import \
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
REQUIREMENTS = ['liffylights==0.9.2']
|
REQUIREMENTS = ['liffylights==0.9.3']
|
||||||
DEPENDENCIES = []
|
DEPENDENCIES = []
|
||||||
|
|
||||||
CONF_SERVER = "server" # server address configuration item
|
CONF_SERVER = "server" # server address configuration item
|
||||||
@ -70,6 +70,8 @@ class LIFX():
|
|||||||
bulb = self.find_bulb(ipaddr)
|
bulb = self.find_bulb(ipaddr)
|
||||||
|
|
||||||
if bulb is None:
|
if bulb is None:
|
||||||
|
_LOGGER.debug("new bulb %s %s %d %d %d %d %d",
|
||||||
|
ipaddr, name, power, hue, sat, bri, kel)
|
||||||
bulb = LIFXLight(self._liffylights, ipaddr, name,
|
bulb = LIFXLight(self._liffylights, ipaddr, name,
|
||||||
power, hue, sat, bri, kel)
|
power, hue, sat, bri, kel)
|
||||||
self._devices.append(bulb)
|
self._devices.append(bulb)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user