device: fix bug when showing details about direct-connected device

This commit is contained in:
Peter F. Patel-Schneider
2025-12-16 15:14:09 -05:00
parent aaabb5d811
commit ff23601183

View File

@@ -112,8 +112,9 @@ class NotificationFlag(Flag):
def flags_to_str(flags, fallback: str) -> str:
print("FLAGS", type(flags), flags, fallback)
flag_names = []
if flags is not None:
if flags is not None and flags is not False:
if flags.value == 0:
flag_names = (fallback,)
else: