We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8464dad commit 106a74cCopy full SHA for 106a74c
homeassistant/components/luci/device_tracker.py
@@ -84,9 +84,12 @@ def get_extra_attributes(self, device):
84
(ip), reachable status (reachable), associated router
85
(host), hostname if known (hostname) among others.
86
"""
87
- device = next(
88
- (result for result in self.last_results if result.mac == device), None
89
- )
+ if not (
+ device := next(
+ (result for result in self.last_results if result.mac == device), None
90
+ )
91
+ ):
92
+ return {}
93
return device._asdict()
94
95
def _update_info(self):
0 commit comments