Make the _update_state function of the cloud switch entities a coro.
Motivation and Context
The async_listen_updates of the cloud client requires the function to be a coro, as the function uses the async_create_catching_coro logging helper of core, which (in some nested functions) always awaits.
Description
Make the
_update_state
function of the cloud switch entities a coro.Motivation and Context
The
async_listen_updates
of the cloud client requires the function to be a coro, as the function uses theasync_create_catching_coro
logging helper of core, which (in some nested functions) always awaits.How has this been tested?
This appeared while beta testing https://github.com/home-assistant/core/issues/111797. I applied this change on my prod system and the log went away.
Screenshots (if appropriate):
Types of changes
Checklist