mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
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:
parent
b6a4a0d9af
commit
91b8eea6ad
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user