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

Commit

Permalink
Make sure device_typs always has a value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adminiuga committed Aug 20, 2019
1 parent 2747100 commit ae74eb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/zha_map/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async def sanity_check(self):
)
else:
self.debug(
"%s (%s %s) was not found in the neighbours " "tables",
"%s (%s %s) was not found in the neighbours tables",
dev.ieee,
dev.manufacturer,
dev.model,
Expand All @@ -207,6 +207,7 @@ async def sanity_check(self):
nei.model = dev.model
nei.manufacturer = dev.manufacturer
nei.offline = True
nei.device_type = dev.node_desc.logical_type.name
self._seen[dev.ieee] = nei

async def scan_device(self, device):
Expand Down

0 comments on commit ae74eb7

Please sign in to comment.