From 41bac5ccbb666f33bcfe70b1cf11ef0044850b1d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 11 Dec 2021 00:20:58 -1000 Subject: [PATCH] Fix non-threadsafe call to async_fire in telegram_bot (#61465) Fixes https://github.com/home-assistant/core/issues/53255#issuecomment-888111478 --- homeassistant/components/telegram_bot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/telegram_bot/__init__.py b/homeassistant/components/telegram_bot/__init__.py index 7fd83141b7d..c79b8c5a033 100644 --- a/homeassistant/components/telegram_bot/__init__.py +++ b/homeassistant/components/telegram_bot/__init__.py @@ -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