From 75b426510850f5375465b53fac1c40f9fcbc3cbb Mon Sep 17 00:00:00 2001 From: Philipp Grimm Date: Mon, 13 May 2024 11:31:27 +0200 Subject: [PATCH] test fire_last_message_received --- custom_components/eltako/gateway.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/eltako/gateway.py b/custom_components/eltako/gateway.py index be1c2133..7ad875e9 100644 --- a/custom_components/eltako/gateway.py +++ b/custom_components/eltako/gateway.py @@ -123,7 +123,7 @@ def _fire_received_message_count_event(self): def _init_bus(self): self._received_message_count = 0 - self._fire_received_message_count_event() + # self._fire_received_message_count_event() if GatewayDeviceType.is_esp2_gateway(self.dev_type): self._bus = RS485SerialInterfaceV2(self.serial_path, baud_rate=self.baud_rate, callback=self._callback_receive_message_from_serial_bus) else: @@ -297,8 +297,8 @@ def _callback_receive_message_from_serial_bus(self, message): if type(message) not in [EltakoPoll]: LOGGER.debug("[Gateway] [Id: %d] Received message: %s", self.dev_id, message) - self._fire_last_message_received_event() - self._fire_received_message_count_event() + # self._fire_last_message_received_event() + # self._fire_received_message_count_event() if isinstance(message, ESP2Message): event_id = config_helpers.get_bus_event_type(self.base_id, SIGNAL_RECEIVE_MESSAGE) dispatcher_send(self.hass, event_id, message)