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
86bab897d1
receiver: introduce small delay in getting pairing information to let receiver settle after pairing
2024-04-15 14:40:50 -04:00
Peter F. Patel-Schneider
bd437b548b
ui: refactor pair_window
2024-03-25 09:13:22 -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
480badbe8c
device: align init methods for all receiver classes
2024-03-16 16:24:33 -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
Matthias Hagmann
e92f1a8a0b
Automatically upgrade strings to f-string
...
Used flynt to convert strings to f-strings, where safely possible.
Usage:
flynt .
Related #2372
2024-03-13 11:02:50 -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
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
Matthias Hagmann
7ec3eddccc
test: Extract get_kind_from_index function and test it
...
Pull get_kind_from_index from class to module level and add tests.
Related #1097
2024-03-10 09:20:39 -04:00
Peter F. Patel-Schneider
3916c189be
receiver: move more method code to subclasses
2024-03-08 15:39:12 -05:00
Matthias Hagmann
4eb5a83326
receiver: create subclasses of receiver for different variants
...
Related #2350
2024-03-08 15:39:12 -05:00
Matthias Hagmann
c3b6802373
refactor: Get receiver product info before instantiation
...
Related #2350
2024-03-03 10:38:46 -05:00
Matthias Hagmann
51e44052b0
Refactor: Move Receiver instantiation to factory class
...
Related #2350
2024-03-03 09:32:42 -05:00
Matthias Hagmann
a29f2b8614
tests: Add hidpp10 tests
...
Related #1097
2024-03-02 10:56:41 -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
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
db4e40e3ac
device: add extended report rate setting
2024-02-01 10:13:03 -05:00
Peter F. Patel-Schneider
d9e5e33947
device: correctly enumerate devices on receiver
2023-11-23 11:18:08 -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
6b9c8cffef
receiver: count found devices when enumerating them and cut off when all found
2023-01-09 05:20:16 -05:00
Peter F. Patel-Schneider
e301551dde
receiver: clean up receiver creation
2022-12-17 13:21:27 -05:00
Peter F. Patel-Schneider
2462d1aad7
receiver: allow for unknown receivers
2022-10-13 16:14:30 -04:00
Peter F. Patel-Schneider
51ec36fef4
receiver: rationalize receiver information structure
2022-10-13 16:14:30 -04:00
Peter F. Patel-Schneider
a1aa584b7e
receiver: use only product records to determine whether receivers can unpair
2022-09-15 10:30:54 -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
cc0ddb8df5
receiver: only close existing devices for receiver
2022-06-21 18:39:37 -04:00
Peter F. Patel-Schneider
1b4a631597
receiver: close device handles when receiver is removed
2022-05-28 09:58:05 -04:00
Peter F. Patel-Schneider
bb20631a27
misc: remove support for Python 2 unicode
2022-04-11 13:20:42 -04:00
Peter F. Patel-Schneider
3e6c92de70
docs: update for PERSISTENT_REMAPPABLE_ACTION and class-based settings
2022-03-12 12:20:38 -05:00
Peter F. Patel-Schneider
12ecef004e
receiver: gather and show PERSISTENT_REMAPPABLE_ACTION information
2022-03-12 12:20:38 -05:00
Peter F. Patel-Schneider
5acc216e12
receiver: use Bolt unique ID as serial number
2021-11-11 10:48:12 -05:00
Peter F. Patel-Schneider
c32a6ca91c
receiver: get device codename from Bolt receiver registers
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
Peter F. Patel-Schneider
886df1daaf
receiver: add support for Bolt receiver (no pairing yet)
2021-11-11 10:48:12 -05:00
Peter F. Patel-Schneider
2c3578a776
receiver: move receiver pairing information code from device class to receiver class
2021-11-11 10:48:12 -05:00