niceboygithub / AqaraGateway

Aqara Gateway/Hub integration for Home Assistant
470 stars 62 forks source link

startup fail on HA 2024.3-beta #232

Closed Necroneco closed 3 months ago

Necroneco commented 4 months ago
2024-03-03 14:06:01.285 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'aqara_gateway' accesses hass.components.persistent_notification. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from persistent_notification directly at custom_components/aqara_gateway/core/utils.py, line 2005: hass.components.persistent_notification.async_create(, please create a bug report at https://github.com/niceboygithub/AqaraGateway/issues
2024-03-03 14:06:01.286 DEBUG (MainThread) [custom_components.aqara_gateway] SysInfo: {'installation_type': 'Home Assistant Supervised', 'version': '2024.3.0b4', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.12.2', 'docker': True, 'arch': 'aarch64', 'os_name': 'Linux', 'os_version': '6.1.0-rpi8-rpi-v8', 'user': 'root', 'supervisor': '2024.02.1', 'host_os': 'Debian GNU/Linux 12 (bookworm)', 'docker_version': '25.0.3', 'chassis': ''}
2024-03-03 14:06:23.353 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities
await add_func(coros, entities, timeout)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 531, in _async_add_and_update_entities
tasks = [create_eager_task(coro) for coro in coros]
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 37, in create_eager_task
loop=loop or get_running_loop(),
^^^^^^^^^^^^^^^^^^
RuntimeError: no running event loop
2024-03-03 14:06:23.366 WARNING (Thread-2) [py.warnings] /config/custom_components/aqara_gateway/core/utils.py:1797: RuntimeWarning: coroutine 'EntityPlatform._async_add_entity' was never awaited

Maybe it's because of class Gateway(Thread): , or should consider migrating to asyncio ?


More logs, many many same errors ``` 2024-03-03 14:06:23.366 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.385 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.391 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.397 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.404 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.413 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.422 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.431 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.437 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.446 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.455 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.463 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.467 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.471 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.475 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.479 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.483 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.487 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.491 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.495 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.498 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.502 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.506 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.512 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.517 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.522 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.527 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.532 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.541 ERROR (Thread-2) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 625, in async_add_entities await add_func(coros, entities, timeout) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 573, in _async_add_entities async with self.hass.timeout.async_timeout(timeout, self.domain): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/timeout.py", line 469, in async_timeout current_task: asyncio.Task[Any] | None = asyncio.current_task() ^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop 2024-03-03 14:06:23.546 WARNING (Thread-2) [py.warnings] /usr/src/homeassistant/homeassistant/helpers/entity_platform.py:613: RuntimeWarning: coroutine 'EntityPlatform._async_add_entity' was never awaited ```