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

Commit

Permalink
Merge pull request #36 from zha-ng/fixes/zigpy-026
Browse files Browse the repository at this point in the history
Syncup with changes in zigpy==0.26.0
  • Loading branch information
Adminiuga committed Oct 7, 2020
2 parents f3365ed + 7144ebf commit d0a85c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/zha_map/neighbour.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ def new_from_record(cls, record):
r.pan_id = str(record.extended_pan_id)
r.ieee = record.ieee

r.device_type = record.struct.device_type.name
r.rx_on_when_idle = record.struct.rx_on_when_idle.name
if record.struct.relationship == zdo_t.Neighbor.RelationShip.NoneOfTheAbove:
r.device_type = record.device_type.name
r.rx_on_when_idle = record.rx_on_when_idle.name
if record.relationship == zdo_t.Neighbor.RelationShip.NoneOfTheAbove:
r.relation = "None_of_the_above"
else:
r.relation = record.struct.relationship.name
r.relation = record.relationship.name
r.new_joins_accepted = record.permit_joining.name
r.depth = record.depth
r.lqi = record.lqi
Expand Down

0 comments on commit d0a85c9

Please sign in to comment.