From 0a211da4d602952e70655cf667c8d0528c3ac29d Mon Sep 17 00:00:00 2001 From: Daan Selen Date: Thu, 27 Mar 2025 10:11:33 +0100 Subject: [PATCH] Slight modification. --- meshbook.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meshbook.py b/meshbook.py index 2db21d6..fd4f89f 100644 --- a/meshbook.py +++ b/meshbook.py @@ -191,15 +191,12 @@ async def filter_targets(devices: list[dict], os_categories: dict, target_os: st if not device["reachable"]: continue # Skip unreachable devices. - if target_os and target_tag not in device["device_tags"]: + if target_tag and target_tag not in device["device_tags"]: continue if device["device_os"] not in allowed_os: continue - if target_os and target_os != device["device_os"]: - continue - valid_devices.append(device["device_id"]) return valid_devices