adaptive-lighting/custom_components/adaptive_lighting
Bas Nijholt c1528ec10a
Refactor, simplify code, rename, and set minimal HA core ≥2022.11 (#655)
* Rename TurnOnOffListener to AdaptiveLightingManager

* Bump Python version

* Refactor and unify methods that are called once

* Simplify adaptation_utils.py

* Improve readability in adaptation_utils.py

* More renames

* Simplify

* More renames and simplifications

* fix test

* simplify _supported_features

* rename

* walrus

* drop old astral support

* Only support HA  ≥2021.06

* Require 2016.06

* Try 2023.1

* even more old versions

* test

* more versions

* verify that only ≥2022.11 works

* named args

* setdefault

* no astral v1

* var

* simplify

* no need to pass adapt_brightness and adapt_color

* Add comment
2023-07-22 21:19:01 -07:00
..
translations [pre-commit.ci] pre-commit autoupdate (#620) 2023-07-02 15:32:44 -07:00
__init__.py Rename TurnOnOffListener to AdaptiveLightingManager (#654) 2023-07-22 17:57:49 -07:00
_docs_helpers.py Automatically generate more service tables in the README (#509) 2023-04-03 00:58:39 -07:00
adaptation_utils.py Refactor, simplify code, rename, and set minimal HA core ≥2022.11 (#655) 2023-07-22 21:19:01 -07:00
config_flow.py linting, sub string for constant 2022-10-29 23:58:03 +00:00
const.py Rename TurnOnOffListener to AdaptiveLightingManager (#654) 2023-07-22 17:57:49 -07:00
hass_utils.py feat: service call adaptation (#628) 2023-07-19 09:10:21 +02:00
manifest.json Better logging and prevent KeyError in state_changed_event_listener (#650) 2023-07-22 12:34:20 -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 [pre-commit.ci] pre-commit autoupdate (#620) 2023-07-02 15:32:44 -07:00
switch.py Refactor, simplify code, rename, and set minimal HA core ≥2022.11 (#655) 2023-07-22 21:19:01 -07:00