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: