From 0e368df02381587c12120b490c27284f008eca87 Mon Sep 17 00:00:00 2001 From: SoCalix <48040807+Socalix@users.noreply.github.com> Date: Mon, 15 Mar 2021 20:07:54 -0500 Subject: [PATCH] Fix xmpp notify for muc rooms (#46715) --- homeassistant/components/xmpp/notify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/xmpp/notify.py b/homeassistant/components/xmpp/notify.py index 68a041a2887..2abd3ffa245 100644 --- a/homeassistant/components/xmpp/notify.py +++ b/homeassistant/components/xmpp/notify.py @@ -165,7 +165,7 @@ async def async_send_message( if message: self.send_text_message() - self.disconnect(wait=True) + self.disconnect() async def send_file(self, timeout=None): """Send file via XMPP. @@ -174,7 +174,7 @@ async def async_send_message( HTTP Upload (XEP_0363) """ if room: - self.plugin["xep_0045"].join_muc(room, sender, wait=True) + self.plugin["xep_0045"].join_muc(room, sender) try: # Uploading with XEP_0363 @@ -335,7 +335,7 @@ async def async_send_message( try: if room: _LOGGER.debug("Joining room %s", room) - self.plugin["xep_0045"].join_muc(room, sender, wait=True) + self.plugin["xep_0045"].join_muc(room, sender) self.send_message(mto=room, mbody=message, mtype="groupchat") else: for recipient in recipients: