LIFX: avoid "Unable to remove unknown listener" warning (#7235)

Forget the cancelled update handler so it is not cancelled a second time
later on (if when <= BULB_LATENCY) and thus invoking the warning.
This commit is contained in:
Anders Melchiorsen 2017-04-23 09:24:08 +02:00 committed by Fabian Affolter
parent b6a4a0d9af
commit 91b8eea6ad

View File

@ -256,6 +256,7 @@ class LIFXLight(Light):
if self.postponed_update:
self.postponed_update()
self.postponed_update = None
if when > BULB_LATENCY:
self.postponed_update = async_track_point_in_utc_time(
self.hass, self.update_after_transition,