Solaar/lib/solaar/cli
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 Fix warnings from automatic code inspections 2024-10-11 07:42:38 -04:00
config.py Fix warnings from automatic code inspections 2024-10-11 07:42:38 -04:00
pair.py Fix warnings from automatic code inspections 2024-10-11 07:42:38 -04:00
probe.py Clean up imports (#2537) 2024-07-15 08:37:18 -04:00
profiles.py Clean up imports (#2537) 2024-07-15 08:37:18 -04:00
show.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00
unpair.py refactor: Use f-strings for more exceptions and log message 2024-03-24 07:01:56 -04:00