Solaar/lib/logitech_receiver
MattHag 062d866951 rule storage: Apply AbstractRepository pattern
Introduce a AbstractRepository as interface to the rules database and
implement a YML storage that implements it.

Additionally, a FakeStorage implements that interface to test diversion
related code, without I/O calls and side effects. It keeps the rules
in-memory for the test duration.

Related #2675
2025-01-02 01:47:06 +01:00
..
__init__.py Refactor: Distinguish module from package 2024-09-15 09:18:51 -04:00
base.py base: Refactor device filtering 2025-01-01 11:20:28 -05:00
base_usb.py Speedup lookup of known receivers 2025-01-01 11:33:07 -05:00
common.py Fixes on top of refactoring 2025-01-01 10:46:04 -05: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 Remove NamedInts: Convert NotificationFlag to flag 2025-01-01 10:46:04 -05:00
diversion.py rule storage: Apply AbstractRepository pattern 2025-01-02 01:47:06 +01:00
exceptions.py Use double quotes for module level docstrings 2024-06-02 09:54:21 -04:00
hidpp10.py Remove NamedInts: Convert NotificationFlag to flag 2025-01-01 10:46:04 -05:00
hidpp10_constants.py Refactor InfoSubRegisters: Use IntEnum in favour of NamedInts 2025-01-01 10:46:04 -05:00
hidpp20.py Test notifications 2025-01-01 13:48:14 -05:00
hidpp20_constants.py charge status: Refactor to enum and move to module of use 2025-01-01 10:46:04 -05: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 Refactor notifications 2025-01-01 13:48:14 -05:00
receiver.py receiver: Refactor extraction of serial and max. devices 2025-01-01 12:52:33 -05:00
rule_storage.py rule storage: Apply AbstractRepository pattern 2025-01-02 01:47:06 +01:00
settings.py Add type hints 2025-01-01 10:46:04 -05:00
settings_templates.py Fix KeyFlag conversion 2025-01-01 10:46:04 -05:00
settings_validator.py Add type hints 2025-01-01 10:46:04 -05:00
special_keys.py Remove NamedInts: Convert HorizontalScroll to enum 2025-01-01 10:46:04 -05:00