Ville Skyttä
34434e8508
Docstring and comment grammar etc fixes ( #174144 )
2026-06-17 23:06:10 +02:00
Franck Nijhof
d284dff5ce
Precompile entity service schemas to avoid per-call recompilation ( #173685 )
2026-06-13 08:11:11 -04:00
Wendelin
16febb36ba
Automation choose: Add optional note to options ( #172837 )
2026-06-03 10:12:52 +02:00
Wendelin
eb72a72182
Rename automation comments to note ( #172312 )
2026-05-27 15:23:06 +02:00
Wendelin
cca8825ca5
Add comment optional attribute to automation items ( #171091 )
2026-05-21 12:52:54 +02:00
Erik Montnemery
852faa7f95
Fix docstring of cv.string ( #171128 )
2026-05-18 21:14:46 +02:00
Franck Nijhof
721c736c03
Allow stop action with error: false and response_variable ( #171020 )
2026-05-17 16:42:27 -04:00
Franck Nijhof and Claude Opus 4.6
eae809abd1
Fix line length violations in core and helpers ( #170534 )
...
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-05-14 16:31:01 -04:00
Franck Nijhof
555d838290
Enable ruff B010 rule and replace setattr with direct attribute assignmet ( #170527 )
2026-05-13 23:39:32 +02:00
Erik Montnemery
676df1d2b2
Fix cv.CONDITION_SCHEMA ( #170395 )
2026-05-12 11:39:43 +02:00
epenet
7169d52010
Remove import annotations from core ( #169547 )
2026-04-30 20:34:43 +02:00
Robert Resch and Copilot
2a5b95ba4d
Require hass in Template ( #169292 )
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-29 09:26:32 +02:00
33180a658a
Validate port ranges in URL validator ( #166059 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
Co-authored-by: Franck Nijhof <frenck@frenck.nl >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-25 21:44:30 +01:00
karwosts
79339aefed
Fix sequence block copy-paste ( #155206 )
2025-11-08 15:50:07 +01:00
Artur Pragacz
fad217837f
Accept more templates in service fields ( #150239 )
2025-11-03 16:40:42 +01:00
Artur Pragacz
b157afac13
Remove templates from schemas for service fields validation ( #150063 )
2025-10-30 18:46:43 +01:00
G Johansson
1818fce1ae
Validating schema outside the event loop will now fail ( #153472 )
2025-10-05 22:37:14 +02:00
Abílio Costa
52de5ff5ff
Remove deprecated zone and event condition keys ( #152986 )
2025-09-25 19:23:40 +02:00
Erik Montnemery
0f372f4b47
Improve condition schema validation ( #144793 )
2025-09-16 10:44:26 +02:00
Artur Pragacz
d5c208672e
Add TARGET_FIELDS to config validation ( #150238 )
2025-08-26 19:40:39 +01:00
Artur Pragacz
53c9c42148
Use relative trigger keys ( #149846 )
2025-08-04 23:01:40 +01:00
Erik Montnemery
6396f54e0d
Move zone conditions to the zone integration ( #148157 )
2025-07-07 18:27:44 +02:00
Erik Montnemery
bb1e263149
Remove cv.SUN_CONDITION_SCHEMA ( #148158 )
2025-07-04 18:34:55 +02:00
Marc Mueller
2c13c70e12
Update ruff to 0.12.0 ( #147106 )
2025-06-19 20:39:09 +02:00
Erik Montnemery
0128d85999
Move sun conditions to the sun integration ( #144742 )
2025-05-12 23:03:37 +01:00
Erik Montnemery
05324dedd0
Deduplicate condition schemas ( #144739 )
2025-05-12 15:38:31 +02:00
Erik Montnemery
16b42cc109
Add cv.renamed ( #143834 )
2025-04-29 07:36:37 +02:00
J. Nick Koston
bb73ecc1f4
Restore service call performance by avoiding expensive runtime cast ( #143378 )
...
Improve service call performance by avoiding expensive runtime type checking
Most of the overhead here was casting
2025-04-21 09:37:10 -04:00
Artur Pragacz
93561543ff
Improve code quality of condition validation ( #141292 )
...
Streamline condition validation
2025-03-24 17:21:32 +01:00
epenet
b7a344fd65
Standardize homeassistant imports in core and base platforms ( #136730 )
...
Standardize homeassistant imports in core
2025-01-28 13:11:48 -05:00
Joost Lekkerkerker
8a35261fd8
Remove unused noqas ( #135583 )
2025-01-15 10:02:18 +01:00
Marc Mueller
239aa94b6f
Update Python version for mypy to 3.13 ( #135636 )
2025-01-15 01:43:13 +01:00
Simon Lamon and Mark Bergsma
ee74a35417
Support time entities in time conditions ( #124575 )
...
Co-authored-by: Mark Bergsma <mark@wikked.net >
2024-11-26 15:37:31 +01:00
epenet
7045b776b6
Use report_usage in helpers ( #130365 )
2024-11-12 09:25:13 +01:00
Erik Montnemery
2236ca3e12
Fix typo in cv.url_no_path ( #129402 )
2024-10-29 12:06:59 +01:00
Joost Lekkerkerker
3810c3cbaf
Improve trigger schema validation to ask for trigger instead of platform ( #126750 )
...
* Add check for missing trigger
* Fix
* Fix
* Escape
2024-09-25 16:44:14 +02:00
Joost Lekkerkerker and Erik Montnemery
a1906b434f
Change trigger platform key to trigger ( #124357 )
...
* fix
* Fix
* Fix
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com >
* Fix
* Fix
* Fix
* Fix
* Add more tests
* Fix
* Fix tests
* Add tests
* Let's see what the CI does
* It fails on the code that tested the thing ofc
* It fails on the code that tested the thing ofc
* Revert test thingy
* Now the test works again, lovely
* Another one
* Fix websocket thingy
* Only copy when needed
* Improve comment
* Remove test
* Fix docstring
* I think this now also work since this transforms trigger to platform
* Add comment
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com >
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com >
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com >
* Check for mapping
* Add test
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com >
* Update test to also test for trigger keys
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2024-09-25 14:19:58 +02:00
epenet
cd95c133af
Enable all TID ruff rules ( #126312 )
...
* Enable ruff rule TID252
* One more
* comment
2024-09-20 12:25:51 +02:00
Erik Montnemery
ded34561b1
Simplify cv._base_trigger_list_flatten ( #125613 )
2024-09-09 21:14:41 +02:00
karwosts and Erik Montnemery
056e6eae82
Add a syntax for merging lists of triggers ( #117698 )
...
* Add a syntax for merging lists of triggers
* Updating to the new syntax
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com >
* fix suggestion
* update test and add comments
* not actually json
* move test to new file
* update tests
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2024-09-09 13:51:32 +02:00
Erik Montnemery
c321bd70e1
Log deprecation warning when cv.template is called from wrong thread ( #125141 )
...
Log deprecation warning when cv.template is called from wrong thread
2024-09-03 14:37:21 +02:00
Erik Montnemery
174f22aa2f
Prevent nesting sections in data entry flows ( #124645 )
2024-08-28 15:42:15 +02:00
Erik Montnemery and Joost Lekkerkerker
55c42fde88
Improve validation of entity service schemas ( #124102 )
...
* Improve validation of entity service schemas
* Update tests/helpers/test_entity_platform.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com >
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com >
2024-08-27 19:05:49 +02:00
Erik Montnemery
533442f33e
Add async friendly helper for validating config schemas ( #123800 )
...
* Add async friendly helper for validating config schemas
* Improve docstrings
* Add tests
2024-08-17 11:01:49 +02:00
Erik Montnemery
f1b7847d1c
Simplify cv._make_entity_service_schema ( #124046 )
2024-08-16 14:09:09 +02:00
Erik Montnemery
7063541733
Support None schema in EntityPlatform.async_register_entity_service ( #123064 )
2024-08-14 10:46:29 +02:00
epenet
ddc94030a6
Fix raise-within-try in config validation helper ( #123353 )
2024-08-08 18:50:49 +02:00
Franck Nijhof
8b96c7873f
Rename 'service' to 'action' in automations and scripts ( #122845 )
2024-07-31 14:36:53 +02:00
Marc Mueller
6bceb8ec48
Add some more VolDictType annotations ( #120610 )
2024-06-26 22:44:43 +02:00
Marc Mueller
d527113d59
Improve schema typing (3) ( #120521 )
2024-06-26 11:30:07 +02:00