Improve formatting of config validation errors (#103957)

* Improve formatting of config validation errors

* Address review comments
This commit is contained in:
Erik Montnemery 2023-11-14 12:48:45 +01:00 committed by GitHub
parent 85eac5a1b1
commit 94a2087ba0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 25 deletions

View file

@ -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"},