MattHag
be83dac209
hid: Convert definition of HID registers to enum
...
* Refactor HID Register definitions
Use enums for distinct type hints, easy discovery of registers.
Make constants uppercase and benefit from enum auto-completion.
Related #2273
* Improve type hints: Registers
2024-06-02 10:34:00 -04:00
MattHag
815dce07be
Unify imports in logitech package
...
Related #2273
2024-05-23 16:42:18 -04:00
Matthias Hagmann
c9dc232951
Refactor: Use dataclasses and enums
...
Replace unnecessary NamedInts in favour of default data types.
Simplify interfaces by reducing possible input from strings to members
of an enum.
2024-05-22 21:14:41 -04:00
Matthias Hagmann
469c04faaf
Introduce Device protocol and type hints
2024-05-22 21:14:41 -04:00
Matthias Hagmann
193dbfda21
hidpp10: Move independent functions to module level
2024-05-22 21:14:41 -04:00
MistificaT0r
4225fce8d7
po: update Russion translation and have all strings translated
...
* update Russian translation
* Fixed translation display in GUI
* fix checks / Fixed translation display in GUI
2024-04-21 11:36:39 -04:00
Peter F. Patel-Schneider
490493d7a3
device: handle BRIGHTNESS CONTROL notifications
2024-03-24 15:44:15 -04:00
Matthias Hagmann
5b09ace1f5
ruff: Apply single line import format
...
# Usage
pre-commit run --all-files
Related #2295
2024-03-13 15:41:21 -04:00
Peter F. Patel-Schneider
b957217ea8
receiver: delay device sending first messages
2024-03-13 08:34:28 -04:00
Peter F. Patel-Schneider
9c5ba6445e
device: remove status from Device and Receiver
2024-03-11 08:23:27 -04:00
Peter F. Patel-Schneider
a1418cd834
device: move changed method from status to Device and Receiver
2024-03-11 08:23:27 -04:00
Peter F. Patel-Schneider
1fe2eab1a4
device: move link_encrypted from status to Device
2024-03-11 08:23:27 -04:00
Peter F. Patel-Schneider
15d425c365
device: move battery information from status to Device
2024-03-11 08:23:27 -04:00
Peter F. Patel-Schneider
0805ecb511
device: move status string function to Device and Receiver
2024-03-11 08:23:27 -04:00
Peter F. Patel-Schneider
87285faf7f
receiver: move pairing status to new dataclass attached to receiver
2024-03-11 08:23:27 -04:00
Peter F. Patel-Schneider
135c8b8cb9
device: use status attribute for error
2024-03-09 10:36:40 -05:00
Peter F. Patel-Schneider
6b3f09aa5d
device: use status attribute for link_encrypted
2024-03-09 10:36:40 -05:00
Peter F. Patel-Schneider
64d8cad81a
device: change status battery fields to Battery objects
2024-03-09 10:36:40 -05:00
Matthias Hagmann
9c76a6c5ba
refactor: Introduce Hidpp20 class
...
Related #1097
2024-03-02 10:56:41 -05:00
Matthias Hagmann
85149a809e
refactor: Introduce Hidpp10 class
...
Related #1097
2024-03-02 10:56:41 -05:00
Matthias Hagmann
c3b01bffae
fix: Replace invalid hidpp10 usage
...
Related #1097
2024-02-28 17:41:46 -05:00
Peter F. Patel-Schneider
b7afc410ba
device: clean up listener and notifications code
2024-02-23 11:37:23 -05:00
Peter F. Patel-Schneider
646ef2f596
device: move battery constants common to HID++ 1.0 and 2.0 to common
2024-02-22 09:57:02 -05:00
Matthias Hagmann
7774569971
Apply ruff format
...
Run ruff auto formatting using:
ruff format .
Related #2295
2024-02-20 15:41:10 -05:00
Peter F. Patel-Schneider
ed248c62b9
device: add callback to call when changing a setting
2024-02-20 06:19:23 -05:00
Matthias Hagmann
5f487dd3b2
logitech_receiver: Move hidpp20 constants into new module
...
Related #1097
2024-02-20 05:58:33 -05:00
Peter F. Patel-Schneider
12de240949
device: improve imports in logitech_receiver
...
device: move imports of ui modules to beginning of files
logitech_receiver: remove imports from __init__.py
2024-02-18 06:21:35 -05:00
Peter F. Patel-Schneider
31d795fcb8
device: improve imports in logitech_receiver
...
device: move some imports to top of modules
device: break up imports loop with device descriptors
device: break up imports loop by moving a function from notifications.py to setting_templates.py
device: break import loop between device.py and diversion.py by using device to access method
2024-02-18 06:21:35 -05:00
Peter F. Patel-Schneider
468fad1358
ui: refactor code to record change to setting
2024-02-10 14:45:00 -05:00
MattHag
87658fb189
logging: Simplify logger instantiation
...
* logging: Simplify logger instantiation
Relates #2254
* logging: Remove aliases
Relates #2254
* logging: Replace deprecated warn with warning
Related #2254
* logging: Fix mistake
Related #2257
2024-02-10 13:55:27 -05:00
Peter F. Patel-Schneider
0548bde44f
ui: handle onboard profiles notifications
2024-02-07 18:48:22 -05:00
Peter F. Patel-Schneider
9c4bbec5e2
ui: handle backlight notification
2024-02-06 12:49:08 -05:00
Peter F. Patel-Schneider
773dac56b6
solaar: improve handling of wheel notifications
2022-12-09 06:59:37 -05:00
Peter F. Patel-Schneider
99f9c8762e
settings: only record changes of scroll wheel ratchet
2022-12-09 06:59:37 -05:00
Peter F. Patel-Schneider
5bf999b841
device: switch scroll ratcheting setting in response to scroll ratchet key notification
2022-10-26 20:56:09 -04:00
Peter F. Patel-Schneider
6b1e8f8a99
device: fix processing of HID++ 1.0 battery reports
2022-10-13 07:57:57 -04:00
Peter F. Patel-Schneider
b2f9df965a
device: use ADC notifications to set device inactive and active
2022-09-25 12:22:36 -04:00
Peter F. Patel-Schneider
2fd8068791
device: fix bugs in battery notification processing
2022-07-10 11:08:28 -04:00
Peter F. Patel-Schneider
4c126f417d
device: add support for ADC MEASUREMENT battery feature
2022-07-10 11:08:28 -04:00
Peter F. Patel-Schneider
83eb836177
device: regularize and improve battery status gathering and reporting
2022-07-10 11:08:28 -04:00
Peter F. Patel-Schneider
f1e2a0c449
receiver: use built-ins for conversions between int and byte string
2022-06-21 18:39:37 -04:00
Peter F. Patel-Schneider
85bcfe7310
device: fix bug in feature lookup
2022-04-29 07:24:26 -04:00
Peter F. Patel-Schneider
ffb9b2710b
device: use isDevice, not kind, to distinguish between devices and receivers
2022-04-15 09:11:56 -04:00
Peter F. Patel-Schneider
1696733702
receiver: dispose of no-op notifications quickly
2022-02-27 11:59:54 -05:00
Peter F. Patel-Schneider
b7a1b81181
device: push settings when device requests software reconfiguration
2021-12-20 08:06:03 -05:00
Peter F. Patel-Schneider
c8ab8b4350
receiver: don't do on-screen notify for wireless device status notifications
2021-12-11 13:41:56 -05:00
Peter F. Patel-Schneider
292461c168
receiver: improve feature notification processing code
2021-12-11 13:41:56 -05:00
Peter F. Patel-Schneider
9823e5ab8a
receiver: Bolt connection does not show encryption status
2021-11-11 10:48:12 -05:00
Peter F. Patel-Schneider
603fbe96e0
ui: add pairing for Bolt receivers
2021-11-11 10:48:12 -05:00
Peter F. Patel-Schneider
885cefb5b6
cli: add pairing for Bolt receivers
2021-11-11 10:48:12 -05:00