Commit Graph

63 Commits

Author SHA1 Message Date
tyjak
812a463846 Apply MR #869 2025-02-06 19:44:25 +01:00
Giancarlo Razzolini
f3c539ad78
Introduces a plugin to display information about Galaxy Buds devices using (#860)
the earbuds tool from https://github.com/JojiiOfficial/LiveBudsCli

* Displays per bud battery level
* Displays case battery level
* Displays placement status
* Displays and sets both Ambient sound (AMB) and Active noise control (ANC)
* Has commands to connect/disconnect
* Dynamic coloring based on battery level
* Equalizer setting
* Touchpad lock
2024-06-13 12:10:08 -05:00
Alexandre Detiste
c899ec1c5a
remove dependency on old mock (#855) 2024-06-13 12:09:04 -05:00
David Wahlstrom
bb78124b89
Adding new hassio modulue (#808)
* Adding new hassio modulue

Initial commit for a new HomeAssistant.io module to report the state of
entities from hassio.

Signed-off-by: David Wahlstrom <david.wahlstrom@gmail.com>
2021-11-22 06:50:18 -07:00
lucible
8549850d6a added absolute value to handle negative CURRENT_NOW & test case (#730) 2019-04-23 00:51:52 +10:00
chestm007
c275c31a50
support multiple streams (#703)
* support multiple streams
2018-12-29 21:26:49 +11:00
Егор
0d7156b5b1 WIP: Fix pycodestyle errors (#653)
* Fix pycodestyle errors

W503 is condracting PEP-8 and was added to the default ignore list by
pycodestyle developers

* Use setup.cfg for pycodestyle ignore parameters

Addresses #651 (kind of). Appending ignores to the default list prevents
us from getting warnings that we don't care about.

* W503 is not in the default ignore list in 2.4.0
2018-08-06 13:29:19 +00:00
Facetoe
1db757a2e2 Fix bug that prevented module errors being displayed in bar (#586)
* Fix bug that prevented errors being shown in bar.

* Add tests to ensure errors are visible in the bar.
2017-06-16 14:34:24 +07:00
hcpl
1281d0e298 Backlight: add tests 2016-10-29 18:41:05 +03:00
Facetoe
3d48213834 Add test for case where subclass defines a setting and sets it to None 2016-08-09 18:33:35 +08:00
Facetoe
86fddf8e22 Add tests for required settings. 2016-08-09 18:14:25 +08:00
David Wahlstrom
12c74674f2 openfiles: add tests and close files
Added a functional test and included a close() call on files that are
opened when the module/test run.
2016-05-06 09:12:33 -07:00
David Wahlstrom
e27c0421b7 test_lastfm: pep8 compliance 2016-03-17 19:59:02 -07:00
David Wahlstrom
7163122e1b last.fm: initial commit of last.fm module
This last.fm module will report to the status bar the current track that
is being played.  Last.fm requires an API key for access to their APIs,
so the user must provide their own API key which can be easily obtained
for free from http://www.last.fm/api/.
2016-03-16 16:27:02 -07:00
David Wahlstrom
afb726e37d pep8 compliance 2016-03-11 07:30:59 -08:00
David Wahlstrom
86c7346476 remove tabs 2016-03-10 12:15:27 -08:00
David Wahlstrom
7c6114df21 plexstatus: pull xml inline
To remove external/filesystem deps, move the stream info xml inline.
2016-03-10 11:39:21 -08:00
David Wahlstrom
ad67762b43 plexstatus: add unittests
Add unittest for the plexstatus module.  Currently verifies that if
there is no stream, the output is null, and if there is a stream, it is
properly getting parsed out of the xml.
2016-03-10 10:51:19 -08:00
enkore
739c595ef0 Fix is_method_of (cf #310), add regression test case 2016-01-28 20:34:53 +01:00
enkore
cfe9ec4c43 Rename test_module_clicks.py to test_core_modules.py 2016-01-28 20:05:13 +01:00
enkore
8124668e2b Add test_callback_handler_method, test_callback_handler_function 2016-01-28 19:20:45 +01:00
enkore
d020b3499b Speed up execution of test_module_clicks
Ideally we'd monkey patch Timer et al so that no dependence on the
host clock exists, which sooner or later might lead to false failures or
positives.
2016-01-05 13:44:35 +01:00
Nuno Cardoso
87c01278f7 Added double click support 2016-01-03 16:43:29 +01:00
enkore
1532040f0b Replace DIY parametrized tests with @pytest.mark.parametrize 2015-06-24 11:01:53 +02:00
enkore
277aa45de9 Add failing test for #89 (pt. 2) 2015-06-21 20:23:28 +02:00
enkore
ff519fbde0 Remove shebangs and coding tags 2015-06-17 10:32:10 +02:00
enkore
41003ef702 Remove unnecessary metaclass from IntervalModule 2015-06-06 12:49:13 +02:00
gacekjk
be87016259 fix pep8 2015-06-05 17:40:45 +02:00
gacekjk
2f778885e6 code refactor, reformat and add docstrings 2015-06-05 17:23:21 +02:00
gacekjk
f8c803e1cb GHz values added 2015-06-05 15:04:03 +02:00
gacekjk
d723ae47e3 added cpu frequency module 2015-06-05 04:13:37 +02:00
Matthieu Coudron
c5933a3b26 This commit adds a basic test to check callbacks work.
This can also serve as an exemple.
2014-12-21 13:31:40 +01:00
Matthieu Coudron
9e3f128a15 This commit improves the logging system: instead of setting a boolean to enable logging, the user sets a logging level (per module). By default only critical errors are logged (ie nothing for now).
Also adds a test for the function run_through_shell
2014-12-18 18:42:58 +01:00
Matthieu Coudron
49a0f01c76 Added missing r to IntevalSettings in test_core_modules 2014-12-18 10:46:53 +01:00
Matthieu Coudron
ff7ea14689 Fixed test that didn't pass anymore (since there were more settings). I also enforced python3 in ci-build.sh otherwise python2.7 would generate syntax errors. Hope it's not a problem 2014-12-17 18:17:19 +01:00
enkore
e8bfec5710 uname: chop trailing newline 2014-11-25 22:36:53 +01:00
enkore
57fda43b4e Add uname module 2014-11-25 22:35:15 +01:00
enkore
2276dd01b4 plus a little test for #132
(I thought i3pystatus was at fault, but no, it's correct)
2014-10-17 16:26:39 +02:00
enkore
6cdbcc8ede This seems to be different behaviour between py.test and nose
nosetests problably switched to the current tests directory before executing them.
2014-10-17 16:25:04 +02:00
enkore
95718c27a8 Remember when we switched to py.test? Yeah well, we lost half the tests on the way there. 2014-10-17 16:12:59 +02:00
enkore
a0a557de9d PEP 8 (I'm bored): tests/test_core_util 2014-10-14 16:53:15 +02:00
enkore
00c230f4f8 Update battery tests, add case for #66, fix #66 2014-06-13 23:23:29 +02:00
Łukasz Jędrzejewski
80f11c95d0 Add tests for adding interval setting automatically 2014-03-12 20:10:07 +01:00
enkore
7c8205392b Remove lots of dumb tests from test_core_util 2013-10-23 21:44:39 +02:00
enkore
d4e5e88986 Set literals 2013-10-23 17:15:09 +02:00
enkore
8fe5c77acd ModuleList: Remove hard dependency on ClassFinder 2013-10-23 17:14:08 +02:00
enkore
2106585d4c ClassFinder: fixed unexpected behaviour, add tests for this 2013-10-23 17:13:38 +02:00
enkore
5eb271c684 Remove PrefixedKeyDict (unused) 2013-10-23 16:54:51 +02:00
enkore
78c01dd3e5 PEP8 2013-10-01 15:22:09 +02:00
enkore
69b702d2f1 3.24: Introduce time wrapper, remove battery remaining_* formatter(!!!) 2013-08-04 23:40:19 +02:00