Bas Nijholt
72eb848a79
Fix setting config_entry directly in ≥2024.12 ( #1155 )
...
* Fix setting config_entry directly in ≥2024.12
FAILED tests/components/adaptive_lighting/test_config_flow.py::test_incorrect_options - RuntimeError: Detected that integration 'adaptive_lighting' sets option flow config_entry explicitly, which is deprecated at homeassistant/components/adaptive_lighting/config_flow.py, line 86: self.config_entry = config_entry. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+adaptive_lighting%22
* compatiblity
2025-01-01 16:46:11 -08: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
0e23e906da
Fix #745 , first time YAML setup ( #752 )
...
* Check whether this is the first time setup
* Keep list
* simplify
* no UI tracking
2023-08-15 14:47:43 -07:00
Bas Nijholt
c64d9cefbe
Delete AdaptiveLighting instances that have been removed from YAML ( #669 )
...
* Do not re-add already added configs
* Use async_remove
2023-07-26 23:40:54 -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
danaues
c24ac4e615
linting, sub string for constant
2022-10-29 23:58:03 +00:00
danaues
14019695a4
add error logging and display error to user
2022-10-29 23:45:29 +00:00
Bas Nijholt
45f2085457
Fix pre-commit issues
2022-10-27 21:57:49 -07:00
danaues
24c2800d67
fix missing configured light entries in options
2022-10-28 02:27:37 +00:00
Bas Nijholt
01fd7f96e2
Run all pre-commit filters
2022-08-28 15:08:03 -07:00
Bas Nijholt
5aed27eb0a
small changes that came up in implementing tests
2020-10-19 20:43:58 +02:00
Bas Nijholt
313c1addf4
track state_changed
2020-10-05 23:41:57 +02:00
Bas Nijholt
c245298512
sync PR
2020-10-04 23:15:12 +02:00
Bas Nijholt
303e2fe27a
add sleep_mode switch and deprecate disable_state/entity
2020-10-02 19:47:06 +02:00
Bas Nijholt
efcc268186
comments and strings
2020-09-30 10:29:47 +02:00
Bas Nijholt
09b835c72c
fix unsubs
2020-09-30 00:42:27 +02:00
Bas Nijholt
297539adda
fixes
2020-09-29 13:13:08 +02:00
Bas Nijholt
02923a3c9e
do not raise but call self._abort_if_unique_id_configured
2020-09-28 21:13:23 +02:00
Bas Nijholt
6bb5e4229d
update yaml settings
2020-09-28 16:10:05 +02:00
Bas Nijholt
6a5ded6981
update to latest PR
2020-09-28 13:10:41 +02:00
Bas Nijholt
a4b4ef3acd
fix problem with turn_off transition
2020-09-27 16:21:42 +02:00
Bas Nijholt
ef04036bfe
fix bug and use vol.In for entity selection
2020-09-26 18:24:44 +02:00
Bas Nijholt
52fa727c75
sync with HA/core PR
2020-09-26 17:39:17 +02:00
Bas Nijholt
5be04625b6
fix ha/core pre-commit issues and submit this code as PR
2020-09-26 16:38:22 +02:00
Bas Nijholt
bd7edb59c1
simplify validate_options
2020-09-25 00:11:22 +02:00
Bas Nijholt
049fb8b983
rename FAKE_NONE -> NONE_STR
2020-09-24 23:54:14 +02:00
Bas Nijholt
59f8f743ab
simplify setting up DOMAIN_SCHEMA
2020-09-24 23:42:21 +02:00
Bas Nijholt
2c0ab9d929
do not show options if managed via YAML
2020-09-24 23:28:03 +02:00
Bas Nijholt
28389ebebe
abort if already setup
2020-09-24 21:01:03 +02:00
Bas Nijholt
e9ee147e20
fix data in switch
2020-09-24 20:56:01 +02:00
Bas Nijholt
5168fe91ed
fix title
2020-09-24 20:44:42 +02:00
Bas Nijholt
b67b25da23
coerce to serializable type
2020-09-24 20:41:24 +02:00
Bas Nijholt
d4123ee20a
use defaults
2020-09-23 19:09:35 +02:00
Bas Nijholt
3b275e1dd3
start with YAML config validation
2020-09-23 18:20:25 +02:00
Bas Nijholt
5ff1da3c1b
simplify schema creation
2020-09-23 13:11:50 +02:00
Bas Nijholt
d33a96fd04
simplify validation
2020-09-23 12:59:58 +02:00
Bas Nijholt
5a4da9512a
use VALIDATION in switch.py
2020-09-23 12:35:57 +02:00
Bas Nijholt
2b0eaff884
validate options
2020-09-23 12:17:51 +02:00
Bas Nijholt
ee607bc60b
use FAKE_NONE
2020-09-20 22:54:45 +02:00
Bas Nijholt
0ed8ab41c0
fix most of the settings by hardcoding 'none'
2020-09-20 20:49:13 +02:00
Bas Nijholt
f8c1a50107
convert strings to timedeltas and datetimes
2020-09-20 20:21:17 +02:00
Bas Nijholt
b37e006ba8
add semi working version with positive_time_dict
2020-09-20 19:59:13 +02:00
Bas Nijholt
a18a312ea9
styling
2020-09-20 18:38:01 +02:00
Bas Nijholt
d63abb4d28
commit working version but not with all options
2020-09-20 18:33:36 +02:00
Bas Nijholt
9d06be0883
WIP
2020-09-19 11:10:54 +02:00
Bas Nijholt
909584abbf
small fixes
2020-09-16 11:06:15 +02:00
Bas Nijholt
954e022860
unify config options flow and YAML schema
2020-09-16 00:03:58 +02:00
Bas Nijholt
48c16ff637
unify configs
2020-09-15 23:33:19 +02:00
Bas Nijholt
c4bb689f27
update config_flow.py
2020-09-15 23:21:53 +02:00
Bas Nijholt
f444a8a142
need to change the name of folder to get strings.json working
2020-09-13 10:46:33 +02:00