Merge branch 'master' into prox2-lightspeed-headset-support

This commit is contained in:
Peter F. Patel-Schneider 2026-04-14 11:15:47 -04:00 committed by GitHub
commit cd286047ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ class NotificationFlag(IntFlag):
@classmethod
def flag_names(cls, flags) -> List[str]:
"""Extract the names of the flags from the integer."""
if flags is None or flags.name is None:
return []
return flags.name.replace("_", " ").lower().split("|")
NUMPAD_NUMERICAL_KEYS = 0x800000