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

Ignore invalid neighbors reported by some devices #1

Merged
merged 1 commit into from
Oct 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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