Each entity creation would call async_add_entities which spawned a seperate task fixes ``` 2024-02-12 18:06:09.819 WARNING (MainThread) [asyncio] Executing <Task pending name='config entry forward setup Philips Hue 2 hue fcb64edfc5ac2edbb656607d5193b583 light' coro=<ConfigEntries.async_forward_entry_setup() running at /usr/src/homeassistant/homeassistant/config_entries.py:1597> wait_for=<Future pending cb=[shield.<locals>._outer_done_callback() at /usr/local/lib/python3.12/asyncio/tasks.py:922, Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:447> cb=[gather.<locals>._done_callback() at /usr/local/lib/python3.12/asyncio/tasks.py:767] created at /usr/local/lib/python3.12/asyncio/tasks.py:420> took 1.260 seconds ``` |
||
---|---|---|
.. | ||
v1 | ||
v2 | ||
__init__.py | ||
binary_sensor.py | ||
bridge.py | ||
config_flow.py | ||
const.py | ||
device_trigger.py | ||
diagnostics.py | ||
errors.py | ||
event.py | ||
light.py | ||
manifest.json | ||
migration.py | ||
scene.py | ||
sensor.py | ||
services.py | ||
services.yaml | ||
strings.json | ||
switch.py |