Skip to content

Commit

Permalink
debugging tcp gateway problems
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed Oct 17, 2024
1 parent ba0954b commit b79ba90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/eltako/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ async def _read_memory_of_all_bus_members(self):
assert id == dev_response.reported_address, "Queried for ID %s, received %s" % (id, prettify(dev_response))

self._callback_receive_message_from_serial_bus(dev_response)
asyncio.sleep(.02)

device_name = ""
for o in sorted_known_objects:
Expand All @@ -325,6 +326,7 @@ async def _read_memory_of_all_bus_members(self):
LOGGER.debug("[Gateway] [Id: %d] Read memory line %d", self.dev_id, line)
mem_response:EltakoMemoryResponse = await self._bus.exchange(EltakoMemoryRequest(dev_response.reported_address, line), EltakoMemoryResponse, retries=3)
self._callback_receive_message_from_serial_bus(mem_response)
asyncio.sleep(.02)
except TimeoutError:
continue
except Exception as e:
Expand Down

0 comments on commit b79ba90

Please sign in to comment.