From dc9affe6fb5393817fb94dfa95be371c92981fd2 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Fri, 13 Mar 2026 17:58:51 -0400 Subject: [PATCH] hidpp: fix bug when showing device notification flags --- lib/logitech_receiver/hidpp10_constants.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/logitech_receiver/hidpp10_constants.py b/lib/logitech_receiver/hidpp10_constants.py index 1f52e411..62a725b3 100644 --- a/lib/logitech_receiver/hidpp10_constants.py +++ b/lib/logitech_receiver/hidpp10_constants.py @@ -16,8 +16,8 @@ ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. from __future__ import annotations -from enum import Flag from enum import IntEnum +from enum import IntFlag from typing import List from .common import NamedInts @@ -68,7 +68,7 @@ class PowerSwitchLocation(IntEnum): return cls.UNKNOWN -class NotificationFlag(Flag): +class NotificationFlag(IntFlag): """Some flags are used both by devices and receivers. 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 -class DeviceFeature(Flag): +class DeviceFeature(IntFlag): """Features for devices. Flags taken from