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 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
abmantis authored and Adminiuga committed Oct 10, 2019
1 parent ccbaf82 commit 22752ea
Showing 1 changed file with 6 additions and 0 deletions.
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 22752ea

Please sign in to comment.