mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 11:45:09 +02: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:
committed by
Fabian Affolter
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,
|
||||
|
Reference in New Issue
Block a user