Improve formatting of config validation errors (#103957)
* Improve formatting of config validation errors * Address review comments
This commit is contained in:
parent
85eac5a1b1
commit
94a2087ba0
4 changed files with 65 additions and 25 deletions
|
@ -83,8 +83,7 @@ async def test_bad_core_config(hass: HomeAssistant) -> None:
|
|||
(
|
||||
"Invalid config for [homeassistant] at "
|
||||
f"{hass.config.path(YAML_CONFIG_FILE)}, line 2: "
|
||||
"not a valid value for dictionary value @ data['unit_system']. Got "
|
||||
"'bad'."
|
||||
"not a valid value for dictionary value 'unit_system', got 'bad'."
|
||||
),
|
||||
"homeassistant",
|
||||
{"unit_system": "bad"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue