hidpp: fix bug when showing device notification flags

This commit is contained in:
Peter F. Patel-Schneider 2026-03-13 17:58:51 -04:00
parent 7520c9cc28
commit dc9affe6fb
1 changed files with 3 additions and 3 deletions

View File

@ -16,8 +16,8 @@
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import annotations from __future__ import annotations
from enum import Flag
from enum import IntEnum from enum import IntEnum
from enum import IntFlag
from typing import List from typing import List
from .common import NamedInts from .common import NamedInts
@ -68,7 +68,7 @@ class PowerSwitchLocation(IntEnum):
return cls.UNKNOWN return cls.UNKNOWN
class NotificationFlag(Flag): class NotificationFlag(IntFlag):
"""Some flags are used both by devices and receivers. """Some flags are used both by devices and receivers.
The Logitech documentation mentions that the first and last (third) The Logitech documentation mentions that the first and last (third)
@ -207,7 +207,7 @@ class InfoSubRegisters(IntEnum):
BOLT_DEVICE_NAME = 0x60 # 0x6N01, by connected device BOLT_DEVICE_NAME = 0x60 # 0x6N01, by connected device
class DeviceFeature(Flag): class DeviceFeature(IntFlag):
"""Features for devices. """Features for devices.
Flags taken from Flags taken from