#websocket_api.async_register_command( xxxx ) -- was never awaited

1 messages · Page 1 of 1 (latest)

uncut elm
#

2025-03-21 11:33:48.424 WARNING (MainThread) [py.warnings] /usr/src/homeassistant/homeassistant/components/websocket_api/connection.py:235: RuntimeWarning: coroutine 'websocket_get_configuration' was never awaited
handler(self.hass, self, msg)

I'm trying to bring dwains dashbopard up-to-date with the latest HA and fix whatever I can fix.

When the init calls async_setup() it has: websocket_api.async_register_command(hass, websocket_get_configuration)
I'm trying to make websocket_get_configuration() be async (it has several blocking open() calls I'm trying to address), however, I think something in the "HA core" which is supposedly async -- does not await?

Can someone check why, or, how to approach this in another way?