Don't pass in loop (#23984)
* Don't pass in loop * Revert some changes * Lint + Axis revert * reinstate loop * Fix a test * Set loop * Update camera.py * Lint
This commit is contained in:
parent
9e96397e6a
commit
f995ab9d54
117 changed files with 179 additions and 187 deletions
|
@ -202,7 +202,7 @@ class LIFXManager:
|
|||
self.entities = {}
|
||||
self.hass = hass
|
||||
self.async_add_entities = async_add_entities
|
||||
self.effects_conductor = aiolifx_effects().Conductor(loop=hass.loop)
|
||||
self.effects_conductor = aiolifx_effects().Conductor(hass.loop)
|
||||
self.discoveries = []
|
||||
self.cleanup_unsub = self.hass.bus.async_listen(
|
||||
EVENT_HOMEASSISTANT_STOP,
|
||||
|
@ -253,7 +253,7 @@ class LIFXManager:
|
|||
task = light.set_state(**service.data)
|
||||
tasks.append(self.hass.async_create_task(task))
|
||||
if tasks:
|
||||
await asyncio.wait(tasks, loop=self.hass.loop)
|
||||
await asyncio.wait(tasks)
|
||||
|
||||
self.hass.services.async_register(
|
||||
DOMAIN, SERVICE_LIFX_SET_STATE, service_handler,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue