From 0ad2573b1a5db3d0877141045f240225f812f085 Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Sat, 10 Mar 2018 10:04:28 +0100 Subject: [PATCH] Fix async lifx_set_state --- homeassistant/components/light/lifx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/light/lifx.py b/homeassistant/components/light/lifx.py index 18bc39d88d273b..0bb65a78c6e607 100644 --- a/homeassistant/components/light/lifx.py +++ b/homeassistant/components/light/lifx.py @@ -221,7 +221,7 @@ async def service_handler(service): tasks = [] for light in self.service_to_entities(service): if service.service == SERVICE_LIFX_SET_STATE: - task = light.async_set_state(**service.data) + task = light.set_state(**service.data) tasks.append(self.hass.async_add_job(task)) if tasks: await asyncio.wait(tasks, loop=self.hass.loop)