Service info
Lightning Detector
Version: 1.3.1
Core
2024.3.3
Frontend
2…0240307.0
No lightning geo_location events get created.
It looks like there's a clash between HA core 2024.3.3 and the lightning detector version 1.3.1
I set up last night with a very wide radius (5000 km) and got errors, but now that we have a storm nearby, I'm seeing the same error with close by strikes.
Debug logging lists the same sequence of errors every time there is a strike.
```
2024-04-01 13:46:09.300 DEBUG (SyncWorker_63) [custom_components.blitzortung] ligntning data: {'time': 1711939567071387400, 'lat': -37.50826, 'lon': 145.656509, 'alt': 0, 'pol': 0, 'mds': 14662, 'mcg': 109, 'status': 0, 'region': 2, 'delay': 2.4, 'lonc': 0, 'latc': 0, 'sig_num': 18, 'distance': 71.5, 'azimuth': 57}
2024-04-01 13:46:09.300 DEBUG (SyncWorker_63) [custom_components.blitzortung.geo_location] geo_location lightning: {'time': 1711939567071387400, 'lat': -37.50826, 'lon': 145.656509, 'alt': 0, 'pol': 0, 'mds': 14662, 'mcg': 109, 'status': 0, 'region': 2, 'delay': 2.4, 'lonc': 0, 'latc': 0, 'sig_num': 18, 'distance': 71.5, 'azimuth': 57}
2024-04-01 13:46:09.300 DEBUG (SyncWorker_63) [custom_components.blitzortung.geo_location] tracked lightnings: 12
2024-04-01 13:46:19.220 DEBUG (MainThread) [custom_components.blitzortung.mqtt] Received message on blitzortung/1.1/r/1/n/u/9/4/j/0/c/t/r/w: b'{"time": 1711939576150236000, "lat": -38.57284, "lon": 144.543074, "alt": 0, "pol": 0, "mds": 3640, "mcg": 250, "status": 0, "region": 2, "delay": 3.3, "lonc": 0, "latc": 0, "sig_num": 23}'
2024-04-01 13:46:19.222 DEBUG (SyncWorker_27) [custom_components.blitzortung] ligntning data: {'time': 1711939576150236000, 'lat': -38.57284, 'lon': 144.543074, 'alt': 0, 'pol': 0, 'mds': 3640, 'mcg': 250, 'status': 0, 'region': 2, 'delay': 3.3, 'lonc': 0, 'latc': 0, 'sig_num': 23, 'distance': 88.2, 'azimuth': 205}
2024-04-01 13:46:19.222 DEBUG (SyncWorker_27) [custom_components.blitzortung.geo_location] geo_location lightning: {'time': 1711939576150236000, 'lat': -38.57284, 'lon': 144.543074, 'alt': 0, 'pol': 0, 'mds': 3640, 'mcg': 250, 'status': 0, 'region': 2, 'delay': 3.3, 'lonc': 0, 'latc': 0, 'sig_num': 23, 'distance': 88.2, 'azimuth': 205}
2024-04-01 13:46:19.223 DEBUG (SyncWorker_27) [custom_components.blitzortung.geo_location] tracked lightnings: 13
2024-04-01 13:46:36.793 ERROR (Recorder) [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-04-01 13:46:36.802 WARNING (Recorder) [py.warnings] /usr/local/lib/python3.12/site-packages/sqlalchemy/orm/mapper.py:3936: RuntimeWarning: coroutine 'EntityPlatform._async_add_entity' was never awaited
visited_states: Set[InstanceState[Any]] = set()
2024-04-01 13:46:36.803 ERROR (Recorder) [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
```