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:
Tim 2016-01-31 13:31:12 +00:00
parent f76dee8a05
commit 1974eda51d

View File

@ -28,7 +28,7 @@ from homeassistant.components.light import \
_LOGGER = logging.getLogger(__name__)
REQUIREMENTS = ['liffylights==0.9.2']
REQUIREMENTS = ['liffylights==0.9.3']
DEPENDENCIES = []
CONF_SERVER = "server" # server address configuration item
@ -70,6 +70,8 @@ class LIFX():
bulb = self.find_bulb(ipaddr)
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,
power, hue, sat, bri, kel)
self._devices.append(bulb)