diff --git a/custom_components/eltako/gateway.py b/custom_components/eltako/gateway.py index ec6e4f95..51201860 100644 --- a/custom_components/eltako/gateway.py +++ b/custom_components/eltako/gateway.py @@ -108,6 +108,9 @@ def _fire_last_message_received_event(self): # self.hass.async_add_executor_job( # self._last_message_received_handler( datetime.utcnow().replace(tzinfo=pytz.utc) ) # ) + asyncio.ensure_future( + self._last_message_received_handler( datetime.utcnow().replace(tzinfo=pytz.utc) ) + ) LOGGER.info("LAST RECEIVED MESSAGE")