Solaar/tests/logitech_receiver
MattHag bd00cc97ad
Estimate accurate battery level for some rechargable devices (#2745)
* battery: Extract battery level estimation into function

Test battery level estimation with sharp edges based on predefined
steps. Rename variable for clarity and add type hints.

Related #2744

* battery: Interpolate battery level for some rechargeable devices in percent

Estimate remaining battery based on measured battery voltage. Use linear
interpolation to achieve a smooth line instead of 10 percent jumps.

Fixes #2744
2025-01-02 10:58:07 -05:00
..
__init__.py tests: Add tests of common module 2024-02-18 06:10:53 -05:00
fake_hidpp.py Test notifications 2025-01-01 13:48:14 -05:00
test_base.py base: Refactor device filtering 2025-01-01 11:20:28 -05:00
test_base_usb.py Speedup lookup of known receivers 2025-01-01 11:33:07 -05:00
test_common.py refactor: use IntEnum for firmware and cidgroup constances 2024-10-23 16:25:35 -04:00
test_desktop_notifications.py testing: upgrade desktop notifications tests to take notifications availability into account 2025-01-02 10:47:53 -05:00
test_device.py Fixes on top of refactoring 2025-01-01 10:46:04 -05:00
test_diversion.py Refactor: Introduce Feature enum 2024-10-14 07:28:09 -04:00
test_hidpp10.py Remove NamedInts: Convert NotificationFlag to flag 2025-01-01 10:46:04 -05:00
test_hidpp20_complex.py Fixes on top of refactoring 2025-01-01 10:46:04 -05:00
test_hidpp20_simple.py Estimate accurate battery level for some rechargable devices (#2745) 2025-01-02 10:58:07 -05:00
test_notifications.py notification: Refactor process_device_notification 2025-01-02 08:05:02 -05:00
test_receiver.py receiver: Test extraction of serial and max. devices 2025-01-01 12:52:33 -05:00
test_setting_templates.py Refactor: Introduce Feature enum 2024-10-14 07:28:09 -04:00
test_settings_validator.py Split up huge settings module 2025-01-01 10:46:04 -05:00