mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
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
This commit is contained in:
parent
69592938db
commit
c1528ec10a
7 changed files with 166 additions and 208 deletions
6
.github/workflows/pytest.yaml
vendored
6
.github/workflows/pytest.yaml
vendored
|
|
@ -14,6 +14,12 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- python-version: "3.10"
|
||||
core-version: "2022.11.5"
|
||||
- python-version: "3.10"
|
||||
core-version: "2022.12.9"
|
||||
- python-version: "3.10"
|
||||
core-version: "2023.1.7"
|
||||
- python-version: "3.10"
|
||||
core-version: "2023.2.5"
|
||||
- python-version: "3.10"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue