From 71d909483ca1627149dd5764af7e75ecb2f53896 Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Wed, 26 Apr 2017 22:44:33 +0200 Subject: [PATCH] LIFX: refresh state after stopping an effect This clears the internal cache in case polling picked up the state as set by an effect. For example, aborting an effect by selecting a new brightness could keep a color set by the effect. --- homeassistant/components/light/lifx/effects.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/light/lifx/effects.py b/homeassistant/components/light/lifx/effects.py index 07b97d03a12..2c054d49e1a 100644 --- a/homeassistant/components/light/lifx/effects.py +++ b/homeassistant/components/light/lifx/effects.py @@ -205,6 +205,7 @@ class LIFXEffect(object): light.device.set_color(light.effect_data.color) yield from asyncio.sleep(0.5) light.effect_data = None + yield from light.refresh_state() self.lights.remove(light) def from_poweroff_hsbk(self, light, **kwargs):