Erik Montnemery
6908497c3d
Add minor version to config entries ( #105479 )
2023-12-12 08:44:35 +01:00
Erik Montnemery
94fd7d0353
Improve test of config entry store ( #105487 )
...
* Improve test of config entry store
* Tweak test
2023-12-11 10:48:12 -05:00
Erik Montnemery
3bcc6194ef
Add domain key config validation ( #104242 )
...
* Drop use of regex in helpers.extract_domain_configs
* Update test
* Revert test update
* Add domain_from_config_key helper
* Add validator
* Address review comment
* Update snapshots
* Inline domain_from_config_key in validator
2023-12-05 15:07:32 +01:00
Erik Montnemery
25bea91683
Use modern platform path when reporting platform config errors ( #104238 )
...
* Use modern platform path when reporting platform config errors
* Update tests
* Address review comment
* Explicitly pass platform domain to log helpers
* Revert overly complicated changes
* Try a simpler solution
2023-12-05 15:06:13 +01:00
Erik Montnemery
124e1cebac
Small improvement of config tests ( #104243 )
...
* Small improvement of config tests
* Update snapshots
2023-11-20 14:15:29 +01:00
Erik Montnemery
80813e992d
Improve formatting of component errors ( #104081 )
...
* Improve formatting of component errors
* Update tests
2023-11-17 23:01:00 +01:00
Erik Montnemery
23ef97f774
Use relative paths in yaml syntax error messages ( #104084 )
2023-11-17 23:00:23 +01:00
Erik Montnemery
a78764f000
Improve formatting of package errors ( #104078 )
2023-11-17 14:57:37 +01:00
Erik Montnemery
b400b33b0d
Refer to domain configuration in custom validator errors ( #104065 )
2023-11-16 15:28:48 +01:00
Erik Montnemery
d8a49b14e5
Use relative paths in configuration validation error messages ( #104064 )
2023-11-16 10:56:47 +01:00
Erik Montnemery
98030a9ce1
Improve formatting of package errors ( #103976 )
2023-11-16 09:08:47 +01:00
Erik Montnemery
5b37096b5f
Refactor config.async_log_exception ( #104034 )
...
* Refactor config.async_log_exception
* Improve test coverage
* Make functions public
2023-11-15 19:09:49 +01:00
Erik Montnemery
c4bf8f96dd
Add tests for components with custom validators ( #104024 )
...
* Add tests for components with custom validators
* Address review comments
2023-11-15 13:11:33 +01:00
Erik Montnemery
dd7670cacf
Improve errors for component configuration with missing keys ( #103982 )
2023-11-15 10:47:05 +01:00
Erik Montnemery
e87ebbef01
Improve errors for component configuration with multiple errors ( #103969 )
...
* Improve errors for component configuration with multiple errors
* Suffix with link to documentation
2023-11-14 21:50:54 +01:00
Erik Montnemery
2cb4435cf0
Add tests for component configuration with documentation links ( #103971 )
2023-11-14 17:14:34 +01:00
Erik Montnemery
381ebf3e53
Add tests for component configuration with multiple errors ( #103964 )
...
* Add tests for component configuration with multiple errors
* Add new configuration file
* Fix typo
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-11-14 15:08:20 +01:00
Erik Montnemery
94a2087ba0
Improve formatting of config validation errors ( #103957 )
...
* Improve formatting of config validation errors
* Address review comments
2023-11-14 12:48:45 +01:00
Erik Montnemery
85eac5a1b1
Add additional test for package errors ( #103955 )
...
* Add additional test for package errors
* Adjust tests
2023-11-14 11:48:56 +01:00
Erik Montnemery
44c1cef42e
Add tests for component configuration with extra keys ( #103959 )
2023-11-14 11:26:22 +01:00
Erik Montnemery
dedd3418a1
Improve print of line numbers when there are configuration errors ( #103216 )
...
* Improve print of line numbers when there are configuration errors
* Update alarm_control_panel test
2023-11-14 08:21:36 +01:00
Erik Montnemery
07af073735
Remove trailing space from configuration error messages ( #103909 )
...
* Remove trailing space from configuration error messages
* Update test
2023-11-13 15:19:37 +01:00
Erik Montnemery
e64582ae9a
Add tests for yaml syntax errors ( #103908 )
2023-11-13 14:04:58 +01:00
Erik Montnemery
be2cee228c
Add tests for package errors ( #103902 )
2023-11-13 11:21:37 +01:00
Erik Montnemery
d0efea3dbd
Add tests for configuration validation errors ( #103848 )
...
* Add tests for configuration validation errors
* Use absolute path for hass.config.config_dir
* Apply suggestions from code review
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-11-13 07:25:58 +01:00