From be5a7457cb04c53dec94635553ee024d322b0da9 Mon Sep 17 00:00:00 2001 From: Philipp Grimm Date: Mon, 13 May 2024 14:26:31 +0200 Subject: [PATCH] test fire_last_message_received --- custom_components/eltako/gateway.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/eltako/gateway.py b/custom_components/eltako/gateway.py index 51201860..e298c5dd 100644 --- a/custom_components/eltako/gateway.py +++ b/custom_components/eltako/gateway.py @@ -108,8 +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) ) + asyncio.ensure_future( + self._last_message_received_handler( datetime.utcnow().replace(tzinfo=pytz.utc) ), + loop= self._loop ) LOGGER.info("LAST RECEIVED MESSAGE")