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 16, 2024
1 parent dfc4ef3 commit 2233d17
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 @@ -302,15 +302,15 @@ async def _read_memory_of_all_bus_members(self):
except TimeoutError:
continue
except Exception as e:
LOGGER.error("[Gateway] [Id: %d] Cannot detect device")
LOGGER.error("[Gateway] [Id: %d] Cannot read memory line %d", self.dev_id, line)

except TimeoutError:
continue
except Exception as e:
LOGGER.error("[Gateway] [Id: %d] Cannot detect device with address {i}")
LOGGER.exception("[Gateway] [Id: %d] Cannot detect device with address {i}. (%s)", self.dev_id, i)

except Exception as e:
LOGGER.error("[Gateway] [Id: %d] Failed to load base_id from FAM14.", self.dev_id)
LOGGER.exception("[Gateway] [Id: %d] Failed to load base_id from FAM14.", self.dev_id)
raise e
finally:
if is_locked:
Expand Down

0 comments on commit 2233d17

Please sign in to comment.