Skip to content
Snippets Groups Projects
Unverified Commit adf35e5e authored by J. Nick Koston's avatar J. Nick Koston Committed by GitHub
Browse files

Skip flume devices with location missing (#81441)

fixes #81438
parent 6bd8cf00
No related branches found
No related tags found
No related merge requests found
......@@ -14,5 +14,6 @@ def get_valid_flume_devices(flume_devices: FlumeDeviceList) -> list[dict[str, An
return [
device
for device in flume_devices.device_list
if KEY_DEVICE_LOCATION_NAME in device[KEY_DEVICE_LOCATION]
if KEY_DEVICE_LOCATION in device
and KEY_DEVICE_LOCATION_NAME in device[KEY_DEVICE_LOCATION]
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment