Skip to content

Commit

Permalink
test fire_last_message_received
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed May 13, 2024
1 parent 2bbc824 commit 75b4265
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/eltako/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 75b4265

Please sign in to comment.