Solaar/lib/logitech_receiver
MattHag 1afcfe4b57
refactor: use IntEnum for firmware and cidgroup constances
* Refactor: test_named_ints_flag_names

Shorten test and clarify behavior using binary numbers.

* Introduce plain flag_names function

This replicates the NamedInts functionality as plain function.

* Refactor FeatureFlag to use IntFlag

Replace NamedInts implementation with IntFlag enum and plain flag_names
function.

Related #2273

* Refactor FirmwareKind to use IntEnum

- Move general FirmwareKind to common module.
- Replace NamedInts implementation with IntEnum.
- Harden related HIDPP 1.0 get_firmware test.

Related #2273

* Refactor CID_GROUP, CID_GROUP_BIT to use IntEnum

Related #2273
2024-10-23 16:25:35 -04:00
..
__init__.py Refactor: Distinguish module from package 2024-09-15 09:18:51 -04:00
base.py base: Remove hard dependency on gi 2024-10-11 07:42:38 -04:00
base_usb.py base_usb: Add external interface 2024-10-11 07:42:38 -04:00
common.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00
descriptors.py Fix warnings from automatic code inspections 2024-10-11 07:42:38 -04:00
desktop_notifications.py Make lr/desktop_notifications testable 2024-10-08 14:35:16 -04:00
device.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00
diversion.py Refactor: Introduce Feature enum 2024-10-14 07:28:09 -04:00
exceptions.py Use double quotes for module level docstrings 2024-06-02 09:54:21 -04:00
hidpp10.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00
hidpp10_constants.py change pairing error values to intenums 2024-10-23 16:22:22 -04:00
hidpp20.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00
hidpp20_constants.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00
i18n.py Unify imports in logitech package 2024-05-23 16:42:18 -04:00
listener.py ruff: Apply single line import format 2024-03-13 15:41:21 -04:00
notifications.py change pairing error values to intenums 2024-10-23 16:22:22 -04:00
receiver.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00
settings.py Refactor: Introduce Feature enum 2024-10-14 07:28:09 -04:00
settings_templates.py Refactor: Introduce Feature enum 2024-10-14 07:28:09 -04:00
special_keys.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00