1
0
mirror of https://github.com/home-assistant/core.git synced 2026-03-02 07:29:28 +00:00

Fix non-threadsafe call to async_fire in telegram_bot (#61465)

Fixes https://github.com/home-assistant/core/issues/53255#issuecomment-888111478
This commit is contained in:
J. Nick Koston
2021-12-11 00:20:58 -10:00
committed by GitHub
parent 773ada5fe4
commit 41bac5ccbb

View File

@@ -575,7 +575,7 @@ class TelegramNotificationService:
}
if message_tag is not None:
event_data[ATTR_MESSAGE_TAG] = message_tag
self.hass.bus.async_fire(EVENT_TELEGRAM_SENT, event_data)
self.hass.bus.fire(EVENT_TELEGRAM_SENT, event_data)
elif not isinstance(out, bool):
_LOGGER.warning(
"Update last message: out_type:%s, out=%s", type(out), out