Bas Nijholt
b2e0a77b96
Install ulid-transform
2023-04-06 13:43:50 -07:00
Bas Nijholt
d839571e2b
Merge remote-tracking branch 'origin/main' into test-multiple-ha-versions
2023-04-06 13:35:28 -07:00
Bas Nijholt
9a7492fc58
Test for multiple Home Assistant versions
2023-04-06 13:30:33 -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
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
Bas Nijholt
54eba57baf
Rename steps in CI
2022-08-29 08:38:37 -07:00
Bas Nijholt
0016818beb
Fix TZ test
2022-08-28 14:13:33 -07:00
Bas Nijholt
e8446fb232
Use symlinks
2022-08-28 14:01:10 -07:00
Bas Nijholt
472f516582
Copy pytest call from core
2022-08-28 13:47:19 -07:00
Bas Nijholt
850badeb1b
pytest exists in core/requirements_test.txt
2022-08-28 13:43:22 -07:00
Bas Nijholt
b9ff3d6f9a
Try to copy over files
2022-08-28 13:42:55 -07:00
Bas Nijholt
da1e52142d
install homeassistant/requirements_test_all.txt
2022-08-28 12:46:49 -07:00
Bas Nijholt
e380e5ccaa
install requirements.txt
2022-08-28 12:43:21 -07:00
Bas Nijholt
965c0e0d3d
Install test requirements
2022-08-28 12:39:01 -07:00
Bas Nijholt
a9428ed936
Fix PYTHONPATH
2022-08-28 12:36:37 -07:00
Bas Nijholt
f6c9d138c5
install pytest
2022-08-28 12:30:28 -07:00
Bas Nijholt
377333beb2
Do not duplicate tests
2022-08-28 12:29:42 -07:00
Bas Nijholt
bf911730f0
remove requirements for CI
2022-08-28 12:28:36 -07:00
Bas Nijholt
b03e4c4355
Cleanup CI
2022-08-28 12:27:55 -07:00
Bas Nijholt
d141355817
Add .github/workflows/ci.yaml
2022-08-28 12:26:57 -07:00
@RubenKelevra
523ddb17d6
add hassfest validation
2021-08-01 17:48:31 +02:00
@RubenKelevra
449de6510f
add validation workflow for HACS
2021-08-01 17:47:20 +02:00