adaptive-lighting/custom_components/adaptive_lighting
Benjamin Auquite 47c5ea93e0
Add test_supported_features and fix the problem introduced in #565 (#575)
* Update test_switch.py

* Update test_switch.py

* test is now done.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix the test only.

test is backwards compatible with the old method.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix _supported_to_attributes

everything works now.

* pre-commit fixes

cannot fix the `function too complex` problem.

* ignore test_switch.py in `pre-commit-config.yaml`

* Add ignore C901 to test_supported_features

* remove commented out code

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-04-27 12:56:49 -07:00
..
translations Add scripts to auto update en.json, strings.json and services.yaml (#520) 2023-04-03 14:59:14 -07:00
__init__.py Auto reload YAML config changes (#573) 2023-04-26 19:10:52 -07:00
_docs_helpers.py Automatically generate more service tables in the README (#509) 2023-04-03 00:58:39 -07:00
config_flow.py linting, sub string for constant 2022-10-29 23:58:03 +00:00
const.py Refactor _supported_features (#565) 2023-04-10 10:07:31 -07:00
manifest.json Refactor _adapt_lights into _update_manual_control_and_maybe_adapt (#513) 2023-04-08 18:54:06 -07:00
services.yaml Add scripts to auto update en.json, strings.json and services.yaml (#520) 2023-04-03 14:59:14 -07:00
strings.json Add scripts to auto update en.json, strings.json and services.yaml (#520) 2023-04-03 14:59:14 -07:00
switch.py Add test_supported_features and fix the problem introduced in #565 (#575) 2023-04-27 12:56:49 -07:00