mrk-its/homeassistant-blitzortung

Exception in _on_connection_change when dispatching blitzortung_mqtt_connected

codyc1515 opened this issue · 5 comments

Receiving an error in the latest beta version of HA (core-2022.12.0b1).

Logger: homeassistant.util.logging
Source: util/logging.py:168 
First occurred: 1:05:25 PM (1 occurrences) 
Last logged: 1:05:25 PM

Exception in _on_connection_change when dispatching 'blitzortung_mqtt_connected': () Traceback (most recent call last): File "/config/custom_components/blitzortung/__init__.py", line 213, in _on_connection_change sensor.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 659, in _async_write_ha_state self.hass.states.async_set( File "/usr/src/homeassistant/homeassistant/core.py", line 1482, in async_set self._bus.async_fire( File "/usr/src/homeassistant/homeassistant/core.py", line 933, in async_fire self._hass.async_add_hass_job(job, event) File "/usr/src/homeassistant/homeassistant/core.py", line 484, in async_add_hass_job self.loop.call_soon(hassjob.target, *args) File "/usr/local/lib/python3.10/asyncio/base_events.py", line 752, in call_soon self._check_thread() File "/usr/local/lib/python3.10/asyncio/base_events.py", line 789, in _check_thread raise RuntimeError( RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one

Any update on this? The plug-in will stop working completely in 2022.12 unless this is fixed.

I guess it quit working, at least for me.

@codyc1515 I cannot reproduce it on Home Assistant 2023.1.4 - it looks everything works as before for me.
Any hints how to reproduce it?

so closing it for now, let's reopen / create new one if problem appear again