Peter F. Patel-Schneider
269e970aa6
device: fix small bugs uncovered by testing
2024-04-13 18:38:44 -04:00
Peter F. Patel-Schneider
c81809bd39
device: add RGB EFFECTS feature version of LED COLOR EFFECTS data
2024-03-24 15:44:15 -04:00
Matthias Hagmann
4e6361429e
refactor: Use f-strings for more exceptions and log message
...
Semi manually convert remaining strings with no translation to f-string.
2024-03-24 07:01:56 -04:00
Peter F. Patel-Schneider
ebc76bca24
tests: add tests for logitech_receiver device
2024-03-23 08:26:12 -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
4a89a79a4d
device: remove checks for status attributes
2024-03-12 13:11:49 -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
64d8cad81a
device: change status battery fields to Battery objects
2024-03-09 10:36:40 -05:00
Matthias Hagmann
8f6e8eef4c
Refactor: Move Device instantiation to factory class
...
Related #2273
2024-03-03 09:32:42 -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
Peter F. Patel-Schneider
8744506259
solaar: add locks to prevent multiple persisters for device
2024-02-23 08:40:16 -05:00
Peter F. Patel-Schneider
3954bbd111
solaar: clean up configuration code
2024-02-23 08:40:16 -05:00
Peter F. Patel-Schneider
ce2de71b1b
device: clean up device and receiver code
2024-02-22 09:57:02 -05:00
Peter F. Patel-Schneider
24ae9bacaa
device: move mapping of device kind into hidpp20
2024-02-22 09:57:02 -05:00
Peter F. Patel-Schneider
4b33c119f6
device: move pairing information gathering to receiver
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
2fcab65486
logitech_receiver: Move hidpp10 constants into new module
...
Related #1097
2024-02-20 05:58:33 -05:00
Matthias Hagmann
e8fdbeee8e
logitech_receiver: Move exceptions into own module
...
Related #1097
2024-02-20 05:58:33 -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
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
23517048d4
device: clean up data for LED effects
2024-02-09 08:36:36 -05:00
Peter F. Patel-Schneider
fb30f4ee41
device: support onboard profiles
2024-02-07 18:48:22 -05:00
Peter F. Patel-Schneider
72c5860a1e
device: support backlight levels and duration
2024-02-06 12:49:08 -05:00
Peter F. Patel-Schneider
db4e40e3ac
device: add extended report rate setting
2024-02-01 10:13:03 -05:00
Peter F. Patel-Schneider
b2eb039e2d
device: catch errors when pinging to try to put device online
2023-11-19 12:04:02 -05:00
Peter F. Patel-Schneider
4669cad2e1
ui: be more cautious when creating log messages to avoid exceptions
2023-11-19 12:04:02 -05:00
Peter F. Patel-Schneider
8537708ec2
device: improve determination of short or long messages
2023-09-17 10:39:48 -04:00
Peter F. Patel-Schneider
5b1d542d79
device: when finding name or codename ping if not known to be online
2023-04-18 07:00:50 -04:00
Peter F. Patel-Schneider
4f1ad33e39
device: get wpid for 28Mz devices from udev when enumerating
2023-02-21 10:25:30 -05:00
Peter F. Patel-Schneider
d41c607188
receiver: fix bug in determining kind of devices for 27Mz receivers
2023-02-11 12:28:01 -05:00
Peter F. Patel-Schneider
3974f1eb4e
device: correctly determine whether to ping with a long HID++ message
2022-12-31 12:23:23 -05:00
Peter F. Patel-Schneider
79d3a60027
device: clean up device creation
2022-12-17 13:21:27 -05:00
Peter F. Patel-Schneider
7b6b11ac73
device: add support for config change feature
2022-12-05 16:44:52 -05:00
Peter F. Patel-Schneider
51ec36fef4
receiver: rationalize receiver information structure
2022-10-13 16:14:30 -04:00
Peter F. Patel-Schneider
3e90c3bc8a
hidapi: process hid report descriptors to identify devices
2022-10-13 16:14:30 -04:00
Peter F. Patel-Schneider
7031f5338f
device: correctly record battery feature when ADC MEASUREMENT produces error
2022-09-25 12:22:36 -04:00
Peter F. Patel-Schneider
ca13e06519
device: get extended pairing information early and allow for unknown WPID
2022-08-20 20:12:48 -04:00
Peter F. Patel-Schneider
2fbaa4a3aa
receiver: return null values if no pairing information available
2022-08-20 20:12:48 -04:00
Peter F. Patel-Schneider
4059b377b4
receiver: use last_id as maximum device number not max_devices
2022-08-20 20:12:48 -04:00
Peter F. Patel-Schneider
d4d4574b3f
device: don't use field that may require communication with device in equality test
2022-08-20 08:49:16 -04:00
Peter F. Patel-Schneider
58dde18f3c
device: fix exception when removing device not in instance list
2022-08-20 08:49:16 -04:00
Peter F. Patel-Schneider
218f7c9620
device: keep track of devices in list
2022-07-26 09:28:17 -04:00