Fix non-threadsafe call to async_fire in telegram_bot (#61465)
Fixes https://github.com/home-assistant/core/issues/53255#issuecomment-888111478pull/60307/head^2
parent
773ada5fe4
commit
41bac5ccbb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue