Benjamin Auquite
ea2e533186
squash 'flexible service calls'
2023-04-11 19:16:56 -05:00
Benjamin Auquite
9bec45b63c
Squashed commit of the following:
...
commit 1edaf1d7ed
Merge: 0e7e06e a888afd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:57:30 2023 -0500
Merge branch 'main' into unconventional_sunrise_sunset_times
commit 0e7e06e8a4
Merge: 8fa554a fe7bdd3
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Sat Apr 8 20:23:20 2023 -0500
Merge branch 'main' into unconventional_sunrise_sunset_times
commit 8fa554a4e7
Merge: ec64eda 39e9d0e
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Sat Apr 8 00:50:16 2023 -0500
merge
commit ec64eda6bf
Merge: 8353db5 744e43f
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Tue Apr 4 21:08:54 2023 -0500
Merge branch 'main' into unconventional_sunrise_sunset_times
commit 8353db54cc
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Tue Apr 4 00:56:24 2023 -0500
tests are unfinished
commit 6cb24116c0
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 3 21:17:01 2023 -0500
Update switch.py
2023-04-11 19:12:20 -05:00
Benjamin Auquite
ce4e04358e
Squashed commit of the following:
...
commit 1ddae7ac48
Merge: 0a4c7ed a888afd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:52:56 2023 -0500
Merge branch 'main' into compare-service-datas-with-ignore-fields
commit 0a4c7ed1dd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Sun Apr 9 23:26:41 2023 -0500
Revert "keep line length under 100"
This reverts commit 461efb5fed .
commit 461efb5fed
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Sun Apr 9 22:38:04 2023 -0500
keep line length under 100
commit beece5c06f
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Sun Apr 9 22:33:50 2023 -0500
ignore ATTR_TRANSITION in checks
# Conflicts:
# README.md
2023-04-11 19:11:28 -05:00
Benjamin Auquite
f0b487320d
Squashed commit of the following:
...
commit 5b927dbb02
Merge: 78395ee a888afd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:52:46 2023 -0500
Merge branch 'main' into adjust_adapt_until_sleep
commit 78395eea65
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 09:38:11 2023 +0000
Update README.md, strings.json, and services.yaml
commit bc39f5e977
Merge: e30b7de c4b5067
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 09:36:39 2023 +0000
Merge c4b5067b05 into e30b7debe5
commit c4b5067b05
Merge: 7244a5f 91d6065
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:36:25 2023 -0500
Merge branch 'adjust_adapt_until_sleep' of https://github.com/basnijholt/adaptive-lighting into adjust_adapt_until_sleep
commit 7244a5f483
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:36:14 2023 -0500
Update const.py
commit 91d606586f
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 09:28:58 2023 +0000
Update README.md, strings.json, and services.yaml
commit 4509c0a0f1
Merge: e30b7de e46d867
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 09:27:02 2023 +0000
Merge e46d867854 into e30b7debe5
commit e46d867854
Merge: e7e266b 3b61f49
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:26:56 2023 -0500
Merge branch 'adjust_adapt_until_sleep' of https://github.com/basnijholt/adaptive-lighting into adjust_adapt_until_sleep
commit e7e266b5a1
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:26:47 2023 -0500
Update const.py
commit 3b61f49fb3
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 09:26:09 2023 +0000
Update README.md, strings.json, and services.yaml
commit 7f952e0658
Merge: e30b7de a4d5f86
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 09:24:27 2023 +0000
Merge a4d5f861ff into e30b7debe5
commit a4d5f861ff
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:24:20 2023 -0500
autofill workaround
commit 06dd2a5c9a
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:23:01 2023 -0500
Revert "Merge branch 'adjust_adapt_until_sleep' of https://github.com/basnijholt/adaptive-lighting into adjust_adapt_until_sleep"
This reverts commit bca9f1bd3d , reversing
changes made to 840aab6158 .
commit bca9f1bd3d
Merge: 840aab6 2d74a31
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:22:19 2023 -0500
Merge branch 'adjust_adapt_until_sleep' of https://github.com/basnijholt/adaptive-lighting into adjust_adapt_until_sleep
commit 840aab6158
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:22:07 2023 -0500
add `adapt_color_temp_until_sleep`
supports backward-compatibility
commit 2d74a313bb
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 09:14:31 2023 +0000
Update README.md, strings.json, and services.yaml
commit 553265a1e8
Merge: e30b7de b53a5af
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 09:12:53 2023 +0000
Merge b53a5aff68 into e30b7debe5
commit b53a5aff68
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:11:48 2023 -0500
add new config option
commit 4e1c769feb
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 04:06:09 2023 -0500
initial commit
2023-04-11 19:10:37 -05:00
Benjamin Auquite
d1a7b9f970
Squashed commit of the following:
...
commit aad2eaf595
Merge: 090c0ab a888afd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:52:37 2023 -0500
Merge branch 'main' into add_flat_limits_to_configuration
commit 090c0abc6d
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 09:30:40 2023 +0000
Update README.md, strings.json, and services.yaml
commit cb27264d6a
Merge: e30b7de f18c5f1
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 09:28:50 2023 +0000
Merge f18c5f161b into e30b7debe5
commit f18c5f161b
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 03:59:33 2023 -0500
initial commit
2023-04-11 19:09:38 -05:00
Benjamin Auquite
7895075e76
Squashed commit of the following:
...
commit 7069d693b8
Merge: adde5b5 a888afd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:52:19 2023 -0500
Merge branch 'main' into add-watched-lights
commit adde5b5645
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 10:34:24 2023 -0500
fix pytest
commit 2c5eaec2d3
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 07:27:25 2023 -0500
Revert "Update const.py"
This reverts commit e773af07ca .
commit e773af07ca
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 07:20:23 2023 -0500
Update const.py
commit c167f59ccd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 06:09:14 2023 -0500
Update docs
commit 6220df57d1
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:59:26 2023 -0500
fix the test
commit ff292c2c1b
Merge: 4fdf42b 19d4468
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:39:17 2023 -0500
Merge branch 'add-watched-lights' of https://github.com/basnijholt/adaptive-lighting into add-watched-lights
commit 4fdf42bea1
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:39:05 2023 -0500
small fixes
commit 19d4468f63
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 10:36:54 2023 +0000
Update README.md, strings.json, and services.yaml
commit 70c90181f0
Merge: e30b7de b6a9265
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 10:34:49 2023 +0000
Merge b6a92650a9 into e30b7debe5
commit b6a92650a9
Merge: 784eed0 ae04ab4
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:34:43 2023 -0500
Merge branch 'add-watched-lights' of https://github.com/basnijholt/adaptive-lighting into add-watched-lights
commit 784eed09b3
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:34:33 2023 -0500
squash merge `alt_detect_method` again
commit ae04ab49a8
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 10:34:12 2023 +0000
Update README.md, strings.json, and services.yaml
commit cfbd65f976
Merge: e30b7de 3c5ea73
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 10:32:34 2023 +0000
Merge 3c5ea73341 into e30b7debe5
commit 3c5ea73341
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:32:27 2023 -0500
Update switch.py
commit 2f750694d9
Merge: 429251b 7a9dc8f
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:31:13 2023 -0500
Merge branch 'add-watched-lights' of https://github.com/basnijholt/adaptive-lighting into add-watched-lights
commit 429251b45f
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:31:04 2023 -0500
update docs
commit 7a9dc8f24a
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date: Mon Apr 10 10:29:37 2023 +0000
Update README.md, strings.json, and services.yaml
commit 37de4244b1
Merge: e30b7de d52ea53
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 10:28:01 2023 +0000
Merge d52ea53dcc into e30b7debe5
commit d52ea53dcc
Merge: dbc47c8 e30b7de
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:27:43 2023 -0500
Merge branch 'main' into add-watched-lights
commit dbc47c8a36
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:26:11 2023 -0500
Update switch.py
commit 2db675a434
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:25:44 2023 -0500
merge with `alt_detect_method`
required for this PR
commit dced97b5ca
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 05:21:51 2023 -0500
merge with `origin\main`
2023-04-11 19:08:49 -05:00
Benjamin Auquite
b6790b14eb
Squashed commit of the following:
...
commit 8dd1b5660e
Merge: 3b3f56f a888afd
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:51:11 2023 -0500
merge origin
commit 3b3f56f2d2
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:39:26 2023 -0500
Update test_switch.py
commit 258964d97b
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Mon Apr 10 12:07:18 2023 -0500
pass flake8
move stuff out of `async_setup_entry`
commit 5b6ad02e1d
Merge: 251babc fe7bdd3
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Sat Apr 8 06:01:44 2023 -0500
Merge branch 'main' into new-service-calls
commit 251babce9d
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Sat Apr 8 05:35:16 2023 -0500
fixes and now passes tests
commit d9cd74bef3
Author: Benjamin Auquite <halomastar@gmail.com>
Date: Sat Apr 8 05:15:17 2023 -0500
initial commit, passes most tests.
'function too complex'
2023-04-11 19:07:48 -05:00
Benjamin Auquite
a888afd6dc
Refactor _supported_features ( #565 )
...
* initial commit
* change features to dict
* another slight refactor
2023-04-10 10:07:31 -07:00
Benjamin Auquite
e30b7debe5
Refactor _adapt_lights into _update_manual_control_and_maybe_adapt ( #513 )
...
* Add auto_reset_manual_control with async timer
* cherry-pick wait for transition stuff
* Update switch.py
* merge wait_for_transition
* Update switch.py
* not renamed in this branch yet.
* Update switch.py
* update tests
* Update switch.py
* Update switch.py
* merge related fix
* cleanup
* Revert "cleanup"
This reverts commit 3aa2f3242b .
* 0.1 sometimes fails the test
* not in this pr yet
* Update switch.py
* Update switch.py
* Update switch.py
* Update switch.py
* Update README.md, strings.json, and services.yaml
* slight refactor
* Update switch.py
* Update switch.py
* Possible refactor of _update_attrs_and_maybe_adapt_lights
* cleaned up
* Revert "cleaned up"
This reverts commit 441cb1ff5c .
* Possible refactor of _update_attrs_and_maybe_adapt_lights (#537 )
Co-authored-by: Benjamin Auquite <halomastar@gmail.com>
* Revert "Revert "cleaned up""
This reverts commit 11b268148b .
* remove bad merge conflict
* revert permissions
* Bump to 1.11.0
* Undo unrelated test changes
* 'else' instead of 'continue'
---------
Co-authored-by: Bas Nijholt <bas@nijho.lt>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-04-08 18:54:06 -07:00
Bas Nijholt
fe7bdd3940
Add auto_reset_time_remaining attribute ( #558 )
...
* Add auto_reset_time_remaining attribute
* fix attr
* Add test
2023-04-08 05:39:08 -05:00
Benjamin Auquite
a01fec0211
Bump to 1.10.1 ( #551 )
...
* Update manifest.json
* undo merge mistake
* Version 1.10.1
2023-04-06 13:29:32 -07:00
Bas Nijholt
59877a0343
Make sure context_id is 26 chars and partially conform to ULID standard ( #550 )
2023-04-06 12:37:02 -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
Benjamin Auquite
03a2d9cbf6
Fix RGB Color Temp Swaps ( #514 )
...
* cherry pick from 486
* Refactor `_add_missing_attributes`
---------
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-04-05 18:39:31 -05:00
Benjamin Auquite
c7f44e472f
Correctly wait for transitions ( #510 )
...
* Add auto_reset_manual_control with async timer
* cherry-pick wait for transition stuff
* Update switch.py
* not renamed in this branch yet.
* Update switch.py
* update tests
* Update switch.py
* merge related fix
* cleanup
* Revert "cleanup"
This reverts commit 3aa2f3242b .
* Update switch.py
* Update switch.py
* Update switch.py
* Small refactor
* Move test to old position for better diffs
* Revert "Small refactor"
This reverts commit b986b3f77c .
* Update README.md
* fix the test
last_state_change isn't updated quick enough.
* #510 changes (#516 )
* Change (WIP)
* Update test_switch.py
* Refactor
* Revert "Revert "Small refactor""
This reverts commit 3731c99936 .
* Update README.md
* Fix the test
* Bump to 1.9.0 (#518 )
* Basic community fixes PR (#460 )
* Fixes #423
#423
* Do not adapt lights turned on with custom payloads.
* Update switch.py
* Issue fixes
#423 , #378 , #403 , #449
* quickly test #274
* Revert feature requests, this branch only has fixes.
Reverted FR 274
* pre-commit fix
* Create automerge.yaml
* test
* Delete automerge.yaml
My bad.
* Fix #460 and #408
* see @basnijholt 's comment in #450 .
* @basnijholt requested changes.
---------
Co-authored-by: Bas Nijholt <bas@nijho.lt>
* Undo accidental changes introduced in #509 , but adds the changes from #460 (#521 )
* Release 1.9.1 (#522 )
* Bump to 1.9.1
* Add CODEOWNERS
---------
Co-authored-by: Benjamin Auquite <halomastar@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* No need to wrap the reset
* Remove unused attrs
* Shorter log message
* revert unrelated tests change
* remove unused function
* Use patch
* Bump to 1.10.0
---------
Co-authored-by: Bas Nijholt <bas@nijho.lt>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-04-03 17:04:06 -07: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
26974c8fd5
Simplify if-statement, (small #460 fix) ( #526 )
2023-04-03 13:32:38 -05: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
0958feb744
Undo accidental changes introduced in #509 , but adds the changes from #460 ( #521 )
2023-04-03 03:47:01 -05:00
Benjamin Auquite
c6a6cd323f
Basic community fixes PR ( #460 )
...
* Fixes #423
#423
* Do not adapt lights turned on with custom payloads.
* Update switch.py
* Issue fixes
#423 , #378 , #403 , #449
* quickly test #274
* Revert feature requests, this branch only has fixes.
Reverted FR 274
* pre-commit fix
* Create automerge.yaml
* test
* Delete automerge.yaml
My bad.
* Fix #460 and #408
* see @basnijholt 's comment in #450 .
* @basnijholt requested changes.
---------
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-04-03 08:02:06 +00:00
Bas Nijholt
87391e6d24
Bump to 1.9.0 ( #518 )
2023-04-03 01:01:58 -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
igiannakas
9caf3048f1
Continue to adapt color temperature down to the sleep temperature after sunset ( #87 )
...
* Update switch.py
Continue to adapt color temperature down to the sleep temperature after sunset. Results in a gradually warming light during the night time rather than a fixed color temperature throughout the night time.
* Run pre-commit
* Merge branch 'master' into pr/87
* add config option bool `adapt_until_sleep` defaulting to `false`
---------
Co-authored-by: Bas Nijholt <bas@nijho.lt>
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
Co-authored-by: Benjamin Auquite <halomastar@gmail.com>
2023-04-03 07:27:07 +00:00
Benjamin Auquite
c915bda9b9
Autoreset_Control_Time - small changes ( #515 )
...
* small changes
* Update README.md
* trivial comment change
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-04-03 06:57:12 +00: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
ccf18c3879
Bump to 1.8.0 ( #508 )
2023-04-02 19:17:35 -07:00
Benjamin Auquite
b081d79b86
Update services.yaml ( #497 )
...
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-04-02 18:57:11 -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
Benjamin Auquite
ec558e5616
Move include_config_in_attributes
2023-04-01 16:35:01 -07:00
Bas Nijholt
2de4b7415b
Refactor find_switch_for_lights and more small refactors ( #488 )
...
* Refactor find_switch_for_lights
* Refactor
* style
* renames
2023-03-29 23:47:57 -05:00
Bas Nijholt
1ca3bf0f6a
Retroactive review changes for #443 ( #485 )
...
* Retroactive review changes for #443
* Move up __init__
* Add test for test_change_switch_settings_service
* Add docs
* Add test for defaults
* Remove unused function
* Add skip var
* move pylint marker
* Refactor validate
* Update README.md
---------
Co-authored-by: Benjamin Auquite <halomastar@gmail.com>
2023-03-27 20:56:54 -05:00
Benjamin Auquite
c05e0cc244
Change attributes in AdaptiveSwitch via service call ( #443 )
2023-03-27 09:05:24 -07: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
Benjamin Auquite
08ff04141e
Feature requests: Switch now optional for service calls | New default icons | Reload .yaml w/o restart | adapt_delay ms ( #459 )
...
* added #274
* attempt getSwitchFromLightId()
* Update switch.py
* changed from register_entity_service to hass.services.async_register
* Update switch.py
* Update switch.py
* Update switch.py
* Update switch.py
* Update switch.py
* Update switch.py
* Update services.yaml
* Update switch.py
* test
* test builds ready
* target selector may not be possible with current syntax
priority is backwards-compatibility as I know most people will smash that update button
* expanded light groups
* test builds ready
* add feature #104
* Update custom_components/adaptive_lighting/switch.py
Co-authored-by: Chris <firstof9@gmail.com>
* Might as well type both. No reason not to.
Co-authored-by: Chris <firstof9@gmail.com>
* Might as well type both. No reason not to.
Co-authored-by: Chris <firstof9@gmail.com>
* Reformatted debug messages.
Reimported ServiceCall as suggested
* Multiple switches allowed again in services.
Apparently this was possible before.
With this change, the `lights` argument must not be passed with multiple switches, or the integration has no way of knowing what the user wants to do. Integration did not make this check in prior versions.
Also reformatted the debug messages.
Removed `automerge.yaml` (my apologies)
* Reload config without restart.
You can now reload any changes to the yaml file without restarting your home assistant. Should show a 'reload' button in your integrations page or you can call the homeassistant reload integration service call.
See https://community.home-assistant.io/t/how-to-allow-custom-compontent-for-yaml-configuration-reloading/391190/4
* Use snake_case for function name 'parseServiceArgs'
* Slight rephrase
* Small style changes
* Rephrased debug messages.
Removed `integration_entities` as we rewrote the code from that function already in parse_service_args. Reference function now above parse_service_args.
* removed: `these_switches = data = None`
* Factor out _find_switch_with_lights
* Rename function and add log statement
* Remove pylint marker
* Handle multiple switches found
* Small changes
* Rename _parse_service_args to _get_switches_from_service_call
* Rephrase log messages
* Add type hint
---------
Co-authored-by: Chris <firstof9@gmail.com>
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-03-25 20:22:05 -07:00
Skyler Carlson
c8ab1df741
Fix sunrise vs sunset typo ( #458 )
...
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-03-25 19:11:51 -07:00
Benjamin Auquite
231e7c197d
Show config options on the switch as attributes with include_config_in_attributes option ( #445 )
...
* Switch attributes now show the config settings.
`sunset_time`, `sunrise_time`, `max_sunrise_time`, and `min_sunset_time` show 'null' when not overridden - TODO
* fixed basnijholt's requested issues
* Run pre-commit
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* 'configuration' attr holds list of config options
returned the `=` from basnijholt's review.
* Small style changes
* Add include_config_in_attributes to en.json
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-03-25 12:43:51 -07:00
Tomáš Valigura
738e7957c6
Add files via upload ( #422 )
...
Please add a Czech translation. Translated with love in collaboration with Jitka Kravcová.
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-02-12 14:33:21 -08:00
Bas Nijholt
ce4503c9c6
Also trigger manual control when using "color_temp" in mired format ( #402 )
2022-12-11 17:23:08 -08:00
Bas Nijholt
dc8fa60e75
Bump to 1.4.0
2022-12-11 16:56:14 -08:00
Bas Nijholt
1ef55ca180
Use Kelvin instead of Mired, default since core=2022.11 ( #375 )
...
* Use Kelvin instead of Mired, default since core=2022.11
* Fix attributes
* Use ATTR_COLOR_TEMP_KELVIN in tests
* use kelvin in tests
* no duplicate
* Round to nearest 5
2022-12-11 16:54:57 -08:00
ngommers
8ed8531610
Create nl.json ( #399 )
...
add dutch language
2022-12-11 09:35:27 -08:00
Bas Nijholt
5c4ce3cae6
bump to version 1.3.0
2022-12-07 12:46:28 -08:00
Mark Niemeyer
97bb2cf3de
use send_split_delay also when no transition is used
2022-11-27 20:37:28 +01:00
Mark Niemeyer
ff6494240d
add a delay between sending of commands when using separate_turn_on_commands
2022-11-27 20:37:28 +01:00
Mark Niemeyer
040d576948
update german translation
2022-11-27 17:30:28 +01:00
Bas Nijholt
fee8654e9f
Fix typos in en.json and strings.json
2022-11-08 16:47:52 -08:00
Bas Nijholt
1d489455f0
Bump to 1.2.0 in manifest.json
2022-11-08 10:38:31 -08:00
Bas Nijholt
60b1be43db
Run pre-commit filters
2022-11-08 09:11:32 -08:00
Sören Beye
d0010740ca
Add max_sunrise_time and min_sunset_time overrides
2022-11-08 17:37:57 +01:00
danaues
c24ac4e615
linting, sub string for constant
2022-10-29 23:58:03 +00:00