From 33bdcb46cf0744cab18071ae692f5aee33b56e6f Mon Sep 17 00:00:00 2001 From: shelvacu Date: Mon, 27 May 2024 03:44:56 -0700 Subject: [PATCH] Fix XMPP giving up on first auth fail (#118224) --- homeassistant/components/xmpp/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/xmpp/notify.py b/homeassistant/components/xmpp/notify.py index 4f7af2be7ee..4da1bf35d1a 100644 --- a/homeassistant/components/xmpp/notify.py +++ b/homeassistant/components/xmpp/notify.py @@ -147,7 +147,7 @@ async def async_send_message( # noqa: C901 self.force_starttls = use_tls self.use_ipv6 = False - self.add_event_handler("failed_auth", self.disconnect_on_login_fail) + self.add_event_handler("failed_all_auth", self.disconnect_on_login_fail) self.add_event_handler("session_start", self.start) if room: