You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was driving me nuts.
After enabling debugpy: and hacking the maximum log text length, I got this every 10 seconds.
2024-03-11 22:17:22.884 WARNING (MainThread) [asyncio] Executing <TimerHandle when=272320.416692397 _run_async_call_action(<HomeAssistant RUNNING>, <Job EntityPlatform poll media_player.sox: track time interval 10.0 <bound method EntityPlatform._async_handle_interval_callback of <EntityPlatform domain=media_player platform_name=sox config_entry=None>> HassJobType.Callback <bound method _TrackTimeInterval._interval_listener of _TrackTimeInterval(hass=<HomeAssistant RUNNING>, seconds=10.0, job_name='EntityPlatform poll media_player.sox: track time interval 10.0 <bound method EntityPlatform._async_handle_interval_callback of <EntityPlatform domain=media_player platform_name=sox config_entry=None>>', action=<bound method EntityPlatform._async_handle_interval_callback of <EntityPlatform domain=media_player platform_name=sox config_entry=None>>, cancel_on_shutdown=None, _track_job=<Job EntityPlatform poll media_player.sox: track time interval 10.0 <bound method EntityPlatform._async_handle_interval_callback of <EntityPlatform domain=media_player platform_name=sox config_entry=None>> HassJobType.Callback <bound method _TrackTimeInterval._interval_listener of ...>>, _run_job=<Job track time interval 10.0 HassJobType.Callback <bound method EntityPlatform._async_handle_interval_callback of <EntityPlatform domain=media_player platform_name=sox config_entry=None>>>, _cancel_callback=<bound method TimerHandle.cancel of <TimerHandle when=272330.417061447 _run_async_call_action(<HomeAssistant RUNNING>, <Job EntityPlatform poll media_player.sox: track time interval 10.0 <bound method EntityPlatform._async_handle_interval_callback of <EntityPlatform domain=media_player platform_name=sox config_entry=None>> HassJobType.Callback <bound method _TrackTimeInterval._interval_listener of ...>>) at /usr/src/homeassistant/homeassistant/helpers/event.py:1506 created at /usr/src/homeassistant/homeassistant/helpers/event.py:1530>>)>>) at /usr/src/homeassistant/homeassistant/helpers/event.py:1506 created at /usr/src/homeassistant/homeassistant/helpers/event.py:1530> took 3.065 seconds
I think the problem is that this integration uses socket instead of asyncio streams, and should therefore wrap the _send method with hass.async_add_executor_job so it doesn't block the event loop.
This would be good even if the vacuum cleaner is online, but it is particularly bad when offline as the socket has to wait for a timeout before letting the event loop thread go on.
The text was updated successfully, but these errors were encountered:
This was driving me nuts.
After enabling
debugpy:
and hacking the maximum log text length, I got this every 10 seconds.I think the problem is that this integration uses socket instead of asyncio streams, and should therefore wrap the _send method with
hass.async_add_executor_job
so it doesn't block the event loop.This would be good even if the vacuum cleaner is online, but it is particularly bad when offline as the socket has to wait for a timeout before letting the event loop thread go on.
The text was updated successfully, but these errors were encountered: