Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
ignore invalid neighbours reported by some devices
Browse files Browse the repository at this point in the history
  • Loading branch information
abmantis committed Oct 3, 2019
1 parent 4aea068 commit b8c708f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/zha_map/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ async def process_neighbour_table(self, nei):
for entry in nei.neighbours:
if entry.ieee in self._seen:
continue

self.debug("Adding %s to all neighbours", entry.ieee)
self._seen[entry.ieee] = entry
await self.save_neighbours(nei)
Expand Down
6 changes: 6 additions & 0 deletions custom_components/zha_map/neighbour.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ async def scan(self):
neighbors = val.NeighborTableList
for neighbor in neighbors:
new = self.new_from_record(neighbor)

if repr(new.ieee) == "ff:ff:ff:ff:ff:ff:ff:ff":
self.debug("Ignoring invalid neighbour: %s", new.ieee)
idx += 1
continue

try:
new.device = self.device.application.get_device(new.ieee)
new._update_info()
Expand Down

0 comments on commit b8c708f

Please sign in to comment.