Solaar/lib/logitech_receiver
Romain Loutrel a19461b29d
refactor: replace ERROR NamedInts by IntEnum (#2645)
* refactoring(logitech_receiver/notifications): change to enums PairingError and BoltPairingError

* refactoring(logitech_receiver/notifications): change to enums PairingError and BoltPairingError (Fix pre-commit checks)

* refactor(logitech_receiver/base.py): create unit tests for ping function before replacing ERRORNamedInts by IntEnum

* refactor(logitech_receiver/base.py): create unit tests for request function before replacing ERROR NamedInts by IntEnum

* refactor(logitech_receiver/base.py): create unit tests for ping function before replacing ERRORNamedInts by IntEnum (add exclusion for macOS)

* refactor(logitech_receiver/base.py): create unit tests for ping function before replacing ERRORNamedInts by IntEnum (fix for python < 3.10)

* refactor(solaar/cli./probe.py): create unit tests for run function before replacing ERROR NamedInts by IntEnum (focusing on the call order when receiving errors)

* refactor(solaar/cli./probe.py): refactor register processing to handle short and long registers in a single loop structure for improved readability and reduced code duplication.

* refactor(logitech_receiver/hidpp10_constants.py): replace ERROR NamedInt by IntEnum.

* refactor(logitech_receiver/hidpp10_constants.py): distinguish hidpp10 and hidpp20 errors in the code for readibility.

* refactor(logitech_receiver/hidpp20_constants.py): replace ERROR NamedInt by IntEnum.

* refactor(logitech_receiver/hidpp20_constants.py): replace ERROR NamedInt by IntEnum. (fix problem with | operator when typing with python 3.8)

* feature(hide on startup option): Visual test (not binded yet) DRAFT

* refactor(solaar/cli./probe.py): create unit tests for run function before replacing ERROR NamedInts by IntEnum (focusing on the call order when receiving errors)

* refactor(solaar/cli./probe.py): refactor register processing to handle short and long registers in a single loop structure for improved readability and reduced code duplication.

* refactor(logitech_receiver/hidpp10_constants.py): replace ERROR NamedInt by IntEnum.

* refactor(logitech_receiver/hidpp20_constants.py): replace ERROR NamedInt by IntEnum.

* refactor(logitech_receiver/hidpp20_constants.py): replace ERROR NamedInt by IntEnum. (fix problem with | operator when typing with python 3.8)

* feature(hide on startup option): Visual test (not binded yet) DRAFT

* Merge: Refactor: hidpp20 to use enum

* Merge: Refactor: hidpp20 to use enum (fix test)

---------

Co-authored-by: some_developer <some.developper.44@gmail.com>
2024-11-02 10:17:50 -04:00
..
__init__.py Refactor: Distinguish module from package 2024-09-15 09:18:51 -04:00
base.py refactor: replace ERROR NamedInts by IntEnum (#2645) 2024-11-02 10:17:50 -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 refactor: replace ERROR NamedInts by IntEnum (#2645) 2024-11-02 10:17:50 -04:00
hidpp20.py Refactor: hidpp20 to use enum (#2647) 2024-11-02 08:33:58 -04:00
hidpp20_constants.py Refactor: hidpp20 to use enum (#2647) 2024-11-02 08:33:58 -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: hidpp20 to use enum (#2647) 2024-11-02 08:33:58 -04:00
special_keys.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00