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
6f633efac5
ui: implement setting_changed callback and pass in to new devices and receivers
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
Matthias Hagmann
2fcab65486
logitech_receiver: Move hidpp10 constants into new module
...
Related #1097
2024-02-20 05:58:33 -05:00
Peter F. Patel-Schneider
fa9494435b
device: streamline status code
2024-02-19 09:18:08 -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
57c0c5d4b3
ui: don't show wireless link or battery information when unknown or not present
2023-02-16 07:39:36 -05:00
ejsc1
5656f90cdb
misc: update yapf version
...
* misc: update yapf version v2
* Update .pre-commit-config.yaml
Co-authored-by: Peter F. Patel-Schneider <pfpschneider@gmail.com>
2022-11-26 22:37:32 -05: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
83eb836177
device: regularize and improve battery status gathering and reporting
2022-07-10 11:08:28 -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
bb20631a27
misc: remove support for Python 2 unicode
2022-04-11 13:20:42 -04: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
885cefb5b6
cli: add pairing for Bolt receivers
2021-11-11 10:48:12 -05:00
Hugo Osvaldo Barrera
22bf4fafff
Drop unnecessary __future__ imports
...
These are all active by default on all recent Python versions.
2021-10-30 16:49:41 -04:00
Hugo Osvaldo Barrera
b96d16672b
Drop obsolete encoding declaration
...
This was only parsed in Python 2.
Python 3 only supports UTF-8 for source files, and that's what it uses.
2021-10-30 16:49:41 -04:00
Peter F. Patel-Schneider
338a2687d3
device: don't signal status change when battery changes from None to None
2021-09-14 11:51:48 -04:00
Peter F. Patel-Schneider
b34061c766
ui: add ability to ignore a Solaar setting
2021-04-12 07:39:35 -04:00
Peter F. Patel-Schneider
808a719823
device: push device settings when device is active after suspend
2020-11-27 10:02:46 -05:00
Peter F. Patel-Schneider
733bf913e6
device: implement UNIFIED_BATTERY feature
...
device: implement UNIFIED_BATTERY feature
2020-11-02 08:27:08 -05:00
Wojciech Nawrocki
362d43a7a1
backend: allow device objects to handle notifications
2020-09-28 12:59:04 -04:00
Peter F. Patel-Schneider
5041530952
receiver: don't produce pop-up notifications at startup and power on
2020-08-14 10:10:39 -04:00
Peter F. Patel-Schneider
78a6ae9208
receiver: keep better track of battery voltage status for GUI
2020-08-09 18:20:18 -04:00
Filipe Laíns
27c90fa736
yapf: adjust style to not indent closing brackets
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
8e89aa0038
yapf: set max line lenght to 127
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
627185079f
flake8: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
33521558ed
pre-commit: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
e6369e0c3c
isort: intial import fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
72a8d311bc
yapf: change code style to yapf
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Peter F. Patel-Schneider
579b09619b
receiver: process battery voltage notifications
2020-06-06 12:59:26 -04:00
Peter F. Patel-Schneider
013f383bc8
ui: display battery voltage in ui if available
2020-06-06 12:59:26 -04:00
Peter F. Patel-Schneider
7936d2dd48
receiver: use battery voltage in read_battery if available
2020-06-06 12:59:26 -04:00
Peter F. Patel-Schneider
79947dca6c
receiver: gather and show battery next level where available
2020-06-06 12:59:26 -04:00
Peter F. Patel-Schneider
4d23d3abac
device: heuristic inference of battery level when charging and no discharging information available
2020-05-02 09:58:24 -04:00
Peter F. Patel-Schneider
ea2c22c015
receiver: fix seldom-encountered bug for devices that have no features set up yet
2020-02-21 16:52:28 +00:00
Peter F. Patel-Schneider
4f4e610635
receiver: battery level 0 is unknown level
2020-02-10 18:44:28 +00:00
Tom Swartz
ae9e862f19
Fix typos in comments
2019-10-20 23:53:45 +01:00
spaced
3583759d3a
devices: basic support for craft keyboard
...
* basic support for craft keyboard
* fix issue where _(status) throws exception because namedInt with UTF8.decode
2019-08-20 09:39:11 +02:00
Patrick Decat
6c0acee645
Fix UnicodeDecodeError with ngettext and python2
2019-06-29 18:01:54 +02:00
Ben Wolsieffer
a59368f3e7
Fix issues with HID++ >= 2.0 devices (particularly related to sleep).
...
* Don't assume 0x41 messages only occur when a device is first paired
(prevents errors when waking from sleep or turning a device on)
* Delay reads/writes when a device is powered on, to prevent broken pipe
errors (hacky solution).
* Don't clear status when a device connects, preventing settings from being
cleared when a device sleeps or is turned off.
* Fix typos.
2018-08-10 23:15:37 -04:00
Dimitriy Ryazantcev
934ecb821d
Update l10n strings in code
2016-12-21 00:18:01 +02:00
Daniel Pavel
c3fdbfb643
translate battery alerts ( fixes #119 )
2013-08-25 23:03:25 +03:00
Daniel Pavel
9934755566
more translation fixes ( #108 )
2013-08-12 00:32:19 +02:00
Daniel Pavel
5faecbf4f3
some strings were untranslated; fixes #100
2013-08-08 21:50:04 +02:00
Daniel Pavel
c3718d22d6
minor clean-ups
2013-07-18 20:36:27 +02:00
Daniel Pavel
61dfefde94
internationalized most strings; fixes #79
...
some might have slipped through the cracks
2013-07-17 19:53:21 +02:00
Daniel Pavel
38c76393b1
added copyright notices to all source files
2013-07-15 17:54:42 +02:00
Daniel Pavel
43ab629a26
moved logitech.unifying_receiver package to logitech_receiver
2013-07-12 22:48:09 +02:00