From 91b8eea6ad4074677a7a6f24d0683f4378a0249f Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Sun, 23 Apr 2017 09:24:08 +0200 Subject: [PATCH] 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. --- homeassistant/components/light/lifx/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/light/lifx/__init__.py b/homeassistant/components/light/lifx/__init__.py index 4d3cd0d4931..47fb9a7b4be 100644 --- a/homeassistant/components/light/lifx/__init__.py +++ b/homeassistant/components/light/lifx/__init__.py @@ -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,