Fix async lifx_set_state (#13045)

This commit is contained in:
Anders Melchiorsen authored and Paulus Schoutsen committed 2018-03-10 10:41:40 -08:00
1 parent b2d8feb979
commit 70064e4c69
1 file changed
+1 -1
+1 -1
View File
@@ -221,7 +221,7 @@ class LIFXManager(object):
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)