From b903bbc04212a4cdfcdac5288827fa405a6020ca Mon Sep 17 00:00:00 2001 From: Lukas Barth Date: Sat, 12 May 2018 10:30:21 +0200 Subject: [PATCH] Fix waiting for setup that never happens (#14346) --- homeassistant/components/matrix.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/homeassistant/components/matrix.py b/homeassistant/components/matrix.py index 569b012b484..b2805c994e8 100644 --- a/homeassistant/components/matrix.py +++ b/homeassistant/components/matrix.py @@ -114,9 +114,6 @@ class MatrixBot(object): self._listening_rooms = listening_rooms - # Logging in is deferred b/c it does I/O - self._setup_done = False - # We have to fetch the aliases for every room to make sure we don't # join it twice by accident. However, fetching aliases is costly, # so we only do it once per room. @@ -343,9 +340,5 @@ class MatrixBot(object): def handle_send_message(self, service): """Handle the send_message service.""" - if not self._setup_done: - _LOGGER.warning("Could not send message: setup is not done!") - return - self._send_message(service.data[ATTR_MESSAGE], service.data[ATTR_TARGET])