We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0217fea + 8150bef commit 474a096Copy full SHA for 474a096
custom_components/openwrt/coordinator.py
@@ -74,6 +74,9 @@ def find_mesh_peers(self, mesh_id: str):
74
result = []
75
for _, device in self._all_devices.items():
76
data = device.coordinator.data
77
+ if not data or 'mesh' not in data or not data['mesh']:
78
+ _LOGGER.warning(f"Missing or invalid 'mesh' data for device: {device}")
79
+ continue
80
for _, mesh in data['mesh'].items():
81
if mesh['id'] == mesh_id:
82
result.append(mesh['mac'])
0 commit comments