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

Fixes https://github.com/home-assistant/core/issues/53255#issuecomment-888111478
pull/60307/head^2
J. Nick Koston 2021-12-11 00:20:58 -10:00 committed by GitHub
parent 773ada5fe4
commit 41bac5ccbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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