device: fix bug when showing details about direct-connected device
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user