renovate[bot]
b8306c2b21
⬆️ Update docker/setup-buildx-action action to v3 ( #1115 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-05 21:41:54 +02:00
renovate[bot]
584368c1a4
⬆️ Update docker/setup-qemu-action action to v3 ( #1116 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-05 21:41:49 +02:00
renovate[bot]
2a24c519fe
⬆️ Update release-drafter/release-drafter action to v6 ( #1119 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-05 21:41:23 +02:00
renovate[bot]
2a3acd5206
⬆️ Update ubuntu to v24 ( #1122 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-05 21:40:36 +02:00
Bas Nijholt
8899d0f5f4
Add Mend Renovate bot ( #1077 )
...
* Add Mend Renovate bot
* Add extends
2024-12-05 11:14:08 -08:00
chpego
ccf465251c
Update bug-report.md ( #1046 )
...
fix url
2024-10-06 22:42:03 -07:00
Bas Nijholt
7d265e9928
Add more versions to testing matrix ( #1040 )
...
* Add more versions to testing matrix
* Update mypy-dev dep
* fix sed
2024-08-25 11:21:01 -07:00
Bas Nijholt
d23f6ec63a
Fix test_proactive_adaptation_with_separate_commands ( #970 )
...
* Add link script
* Set run_immediately=False
* Add await hass.async_block_till_done()
* Use scripts/link
* Rename scripts
* Links in devcontainer
* Install from setup script
2024-04-07 14:01:05 +02:00
Bas Nijholt
47cbda5c5e
Add versions to matrix and fix area test ( #967 )
2024-04-06 19:05:18 +02:00
Bas Nijholt
2f31b42cb2
Fix devcontainer and testing Dockerfile ( #962 )
...
* Fix permissions for `scripts/setup`
* Add new script
* Use script
* Update Dockerfile
* Rename and clone
* Perms
* Fix
* fi
2024-04-06 11:25:47 +02:00
Bas Nijholt
9eae1501d3
Test HA core v2023.6 until v2024.2 ( #942 )
...
* Test HA core v2023.6 until v2024.2
* Use Python 3.12
* Add components.ffmpeg
* Revert "VS Code Dev Container (dev & test environment) (#605 )"
This reverts commit 6283158ff7 .
* Fix
* revert
* fi
* simplify
* Fix
* fixes
* fix
* rev
* Rename test
* fix
* fix all
* fix
* revert
2024-04-06 10:14:54 +02:00
Bas Nijholt
e4e1aa7d37
Use Python 3.12 in .github/workflows/update-readme.yml ( #961 )
2024-04-06 10:13:13 +02:00
pre-commit-ci[bot]
95a59438b6
[pre-commit.ci] pre-commit autoupdate ( #882 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.2.0 )
- [github.com/psf/black: 23.11.0 → 24.1.1](https://github.com/psf/black/compare/23.11.0...24.1.1 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-05 14:13:13 -08:00
Bas Nijholt
a47f7ce49f
Add requirements-locked.txt for WebApp ( #897 )
2024-01-05 17:51:10 -08:00
Bas Nijholt
5b7ee44629
Fix length of descriptions in UI (config flow) ( #732 )
...
* Fix length of strings in UI
* Update README.md, strings.json, and services.yaml
* fix
* add desc
* Update README.md, strings.json, and services.yaml
* mention webapp
* Add desc
* link
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-10 00:17:25 +00:00
Bas Nijholt
487756b345
Add full changelog to releases
2023-08-09 15:01:00 -07:00
Bas Nijholt
750acc9784
Add release-drafter config
2023-08-09 14:57:34 -07:00
Bas Nijholt
0d387d4bcd
Add release-drafter GitHub Action ( #731 )
2023-08-09 14:56:08 -07:00
Bas Nijholt
db5f9d623c
Mention app more prominently and improve style ( #725 )
...
* Mention app more prominently
* Use dark-mode
* add setuptools
* no cyber
* no not run on PR
* Ruff fixes
* Add link
* remove unused deps
2023-08-08 17:34:35 -07:00
Bas Nijholt
f8e7880a96
Split up SunLightSettings and improve https://basnijholt.github.io/adaptive-lighting/ ( #719 )
...
* Split up SunLightSettings
* Renames
* factor out SunEvents
* more renames
* rewrite
* rewrite more
* simpler
* refactor
* refact
* raise
* refact
* rename
* move method
* clean
* Move to new module 'sun.py'
* make sun independent of HA
* rename
* Move to webapp/homeassistant_util_color.py
* Rework app
* Add link
* new plotting
* app changes
* fix tests
* test clean
* tz fixes
* fix
* use sed
* verbose
* fix tz
* fix
* tiem
2023-08-08 21:31:17 +00:00
Bas Nijholt
943a6360c7
Add simple webapp to play with different parameters ( #715 )
...
* Add simple webapp to play with different parameters
* ignore
2023-08-06 16:42:56 -07:00
Bas Nijholt
f28c031551
Fix alias in FUNDING.yml ( #677 )
2023-07-28 17:20:01 -07:00
Bas Nijholt
e9297d562f
Cleanup after add_to_platform_abort is called, try-except intercept, update strings.json, fixes #658 ( #659 )
...
* Cleanup after add_to_platform_abort is called, fixes #658
* Add note
* try-catch because of priv
* Catch all exceptions
* Bump to 1.17.3 in manifest.json
* assert that hass is not None
* Rename _light_event_action -> _light_state_event_action
* update .github/update-strings.py
* Update README.md, strings.json, and services.yaml
* update name
* Fixes
* Update README.md, strings.json, and services.yaml
* Add name
* Do not add name
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-26 12:52:03 -07:00
Bas Nijholt
bb84684bce
Style with ruff and logging ( #643 )
...
* Formatting with ruff
* more logging
* Require on_only
* Different implementation
* More ruff
* Remove new logging statements
* Remove 'pylint: disable=protected'
* style
* fixes
* ruff
* Switch to ruff
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix .github
* Fix
* Add ignores
* fix arg
* fix B905
* Fix D
* Fix more
* Fix more
* order
* use path
* moer path
* Remove unused ignores
* fix tes deps
* fix typo
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-23 14:24:22 -07:00
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
Bas Nijholt
69592938db
Rename TurnOnOffListener to AdaptiveLightingManager ( #654 )
...
* Rename TurnOnOffListener to AdaptiveLightingManager
* Bump Python version
2023-07-22 17:57:49 -07:00
Bas Nijholt
db40b9af6b
Only build Docker image on main ( #648 )
2023-07-21 18:08:43 -07:00
Mario Guggenberger
6283158ff7
VS Code Dev Container (dev & test environment) ( #605 )
...
* build: dev container
Add a VS Code Dev Container from the blueprint at bceaae212f
* build: dev container test setup
Add support for unit testing in the dev container environment with debugging and code coverage.
* ci: adjust to dev container test restructuring
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* ci: fix coverage collection
* build: add dummy light to HA config
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* build: update dev container to Python 3.11 (for HA 2023.6)
* Add VS Code tasks
* Use pre-commit hooks for linting
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Unpin HA version
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-06-11 15:33:07 -07:00
Mario Guggenberger
12dae4b6a6
fix: 2023.6 compatibility ( #607 )
...
* fix: 2023.6.0 compatibility
* ci: test with Python 3.11 against 2023.6.0b4
* Set 2023.06.0
* Bump to 2023.06.1
---------
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-06-11 14:12:37 -07:00
Bas Nijholt
29e54185e3
Add "See also" to README ( #591 )
...
* Add "See also" section
* Add date
* chore(docs): update TOC
* Add YouTube videos
* Add components.cloud
* verbose loggin
---------
Co-authored-by: basnijholt <basnijholt@users.noreply.github.com>
2023-05-12 11:36:24 -07:00
Benjamin Auquite
adf0d0cf30
Auto reload YAML config changes ( #573 )
...
* Update __init__.py
* Update __init__.py
* skip installing codecov
* remove in CI
* test 2023.4.6
---------
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-04-26 19:10:52 -07:00
Bas Nijholt
39e9d0e74f
Update issue templates ( #557 )
2023-04-07 19:40:36 -05:00
Bas Nijholt
c0c363136b
Test multiple Home Assistant releases and the dev branch ( #552 )
...
* Test for multiple Home Assistant versions
* Install ulid-transform
* remove unnecessary unsafe `async_set` from test
* Skip test_state_change_handlers in <2023.4
* Revert "Skip test_state_change_handlers in <2023.4"
This reverts commit 8d01b6ec4e .
---------
Co-authored-by: Benjamin Auquite <halomastar@gmail.com>
2023-04-06 16:36:57 -07:00
Benjamin Auquite
cb967aeeb7
Create intentionally over-redundant state_change tests and fix #541 ( #544 )
...
* add transition_timer test and debug
* syntax error
* test
* Update switch.py
* Revert "test"
This reverts commit b8009e0a1a .
* Update test_switch.py
* add `create_transition_events` to tests.
nearly done
* tests are done!
* pop is for dictionaries
* Update test_switch.py
* combine the tests
* pin markdown-code-runner
* Pin with '=='
* Update test_switch.py
* pin in the correct place 😅
* Update test_switch.py
* Use timer.is_running
* Update test_switch.py
* ensure timer is running in tests
* this passes the test
* Update test_switch.py
* Do not create new list when not needed
* Remove empty deps
* Remove CONF_ULID_MAX_LENGTH (which is not configurable)
* this shouldn't pass the test but it does.
---------
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-04-06 13:53:23 -05:00
Bas Nijholt
b730c7cc90
Add scripts to auto update en.json, strings.json and services.yaml ( #520 )
...
* Add scripts to auto update strings.json and services.yaml
* Run services
* simplify
* Run strings
* rerun
* revert
* allow unicode
* Add CODEOWNERS
* Update CODEOWNERS
* set CONF_USE_DEFAULTS docs
* add field_name
* Auto run scripts
* Update desc
* Update README.md, strings.json, and services.yaml
* double quotes
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update README.md, strings.json, and services.yaml
* Add newline
* sync changes between en.json and strings.json
* Update README.md, strings.json, and services.yaml
* double quotes
* fix
* Update README.md, strings.json, and services.yaml
* Add comments
* Remove comments
* shorter
* Update README.md, strings.json, and services.yaml
* Rephrase
* Update README.md, strings.json, and services.yaml
* remove key from desc
---------
Co-authored-by: Benjamin Auquite <halomastar@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-03 14:59:14 -07:00
Bas Nijholt
d768a1e825
Release 1.9.1 ( #522 )
...
* Bump to 1.9.1
* Add CODEOWNERS
2023-04-03 02:07:05 -07:00
Bas Nijholt
19fcb1d6b9
Automatically generate more service tables in the README ( #509 )
...
* Automatically sync more data
* Automatically generate apply table
* Generate manual control
* Add manual control docs
* Update README.md
* Move docs functions to separate file
* Update code
* simple
* no path
* link paths
* Fix link
* missed
* cd core
* Update README.md
* Allow alternative docs
* update readme
* More special
* Fx
* Update README.md
* Remove common descriptions
* Update README.md
* Update README.md
* Rephrase
* Update README.md
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-03 00:58:39 -07:00
Bas Nijholt
ea2a6b0173
Add auto_reset_manual_control with async timer ( #487 )
...
* Add auto_reset_manual_control with async timer
* Add failing test
* Debugging
* Refactor find_switch_for_lights
* Revert changes in is_manually_controlled
* style
* Fix test_manual_control
* add types
* fixes
* dict
* make all tests pass
* text
* Rework find_switch_for_lights
* Style
* Better check
* revert, do in other test!
* No need to log when raising
* Add type hint
* Suggestion https://github.com/basnijholt/adaptive-lighting/pull/488/files#r1152408541 by @th3w1zard1
* Small fixes
* document new config everywhere (#496 )
* chore(docs): update TOC
* undo change
* fi
* Update README.md
* Update README.md
* chore(docs): update TOC
* Update README.md
* Use markdown-code-runner
* Remove
* Use markdown-code-runner instead of packaged solution
* fix comment
* Only commit when needed
---------
Co-authored-by: Benjamin Auquite <halomastar@gmail.com>
Co-authored-by: basnijholt <basnijholt@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-03 02:22:23 +00:00
Bas Nijholt
9e5e9a49e5
Sync main branch to master ( #507 )
2023-04-02 18:56:56 -07:00
Bas Nijholt
8108bd0a4b
Use markdown-code-runner instead of packaged solution ( #505 )
...
* Use markdown-code-runner instead of packaged solution
* add debug
2023-04-02 18:56:36 -07:00
Bas Nijholt
cc8ce29a8a
Auto-generate the configuration options documentation ( #498 )
...
* Autogenerate the documentation and strings
* Line limit
* Split
* Happy pre-commit
* Split up workflows
* Generate table function
* raise
* Add gen script
* chore(docs): update TOC
* Add gen script
* path
* Run - name: Install Home Assistant
* chore(docs): update TOC
* add copyright
* Fix branch name
* Run on PRs
* dev
* remove steps
* use matrix
* Run script
* chore(docs): update TOC
* Try fixing CI
* fix
* test
* refactor
* chore(docs): update TOC
* fix
* update
* use v3
* rename
* Fix input
* fix pytest
* fix path
* paths
* Change to github.head_ref
* More backticks
* Add extra text
* chore(docs): update TOC
* backticks
* Update README.md
---------
Co-authored-by: basnijholt <basnijholt@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-01 23:43:20 -07:00
Bas Nijholt
26c19525cd
Rewrite the README ( #492 )
...
* Rewrite the README
* More changes
* More
* Rewrites
* Test collapse
* test
* Fix
* backticks
* Rewrite options
* emoji headings
* chore(docs): update TOC
---------
Co-authored-by: basnijholt <basnijholt@users.noreply.github.com>
2023-03-30 20:58:29 +00:00
Bas Nijholt
491aca696c
Add linux/arm64 to build platform of Docker image ( #476 )
...
* Add linux/arm64 to build platform of Docker image
* Fix url
2023-03-27 03:00:12 +00:00
Bas Nijholt
1fb364949e
Fix name of Docker image ( #478 )
2023-03-27 02:39:57 +00:00
Bas Nijholt
f408f330c1
Disable Docker image builds on ARM for now ( #475 )
2023-03-26 19:14:19 -07:00
Bas Nijholt
1b08e8e6ba
Add testing Dockerfile ( #470 )
...
* Add testing Dockerfile
* Add comments
* Format table
* Add tests/README.md
* Rephrase
* add note in dockerfile
2023-03-27 01:18:18 +00:00
Benjamin Auquite
06dcdbb4a4
Fix the broken tests ( #467 )
...
* Update test_dependencies.py
pytest reversion todo in later commit
* increase verbosity for analysis
* "instance" was created in the basic features PR.
* Can't stand the deprecation warnings.
* add testing steps to workflow action in logs.
Help the next person running into this issue again.
* wording in new messages.
* Manifest keys should be sorted: domain, name, then alphabetical order
* return basnijholt's original settings.
replaced `-v` with `-qq` again in `pytest.yaml`,
returned `branches: [master]` in both yaml files.
* Forgot a comma
* Update version in manifest to 1.6.0
* @th3w1zard1 is a code owner!
* Update .gitignore
* Revert "Update .gitignore"
This reverts commit 172841d356 .
2023-03-26 15:04:13 -07:00
Bas Nijholt
393885a019
Do not test on Python 3.9, which Home Assistant no longer supports ( #429 )
2023-02-12 14:40:38 -08:00
Bas Nijholt
7ee7dfe570
Rename ci.yaml to pytest.yaml
2023-01-12 12:42:33 -08:00
Bas Nijholt
166044074a
Add pre-commit CI
2022-08-29 09:25:26 -07:00