mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix async lifx_set_state (#13045)
This commit is contained in:
parent
4d74fc2d07
commit
e910ecfd5f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user