Closed emontnemery closed 2 years ago
Thanks for the heads-up.
I think this change has no impact on alarmo since are only 2 cases where mqtt.async_publish
is called, both are async
functions.
I will update my Alarmo development environment to latest dev release to double check this.
I think this change has no impact on alarmo since are only 2 cases where mqtt.async_publish is called, both are async functions.
I don't know why I made this statement earlier, but they were not async routines so I made changes for this https://github.com/nielsfaber/alarmo/commit/45054375a30e7bba93811e3cb8a54118172d5b9a
I will make sure to release it soon, thanks for the heads-up.
mqtt.async_publish
is a couroutine in HA core 2021.12: home-assistant/core#58441This can be solved as suggested here: https://github.com/blakeblackshear/frigate-hass-integration/pull/166
If
mqtt.async_publish
is called from a non-coroutine, usehass.async_create_task
if it's not practical to convert the caller to a coroutine: