Skip to content

Commit

Permalink
Fix error userfriendlyname on device_tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius committed Jan 13, 2024
1 parent 57aebad commit 28bb275
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/bbox/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def is_connected(self):
@property
def name(self):
"""Return name."""
if self._device.get("userfriendlyname") != "":
if self._device.get("userfriendlyname", "") != "":
name = self._device["userfriendlyname"]
elif self._device.get("hostname") != "":
name = self._device["hostname"]
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bbox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"loggers": ["bboxpy"],
"requirements": ["bboxpy==1.1.5"],
"ssdp": [],
"version": "1.3.2",
"version": "1.3.3",
"zeroconf": []
}

0 comments on commit 28bb275

Please sign in to comment.