Improve validation of device trigger config (#26910)
* Improve validation of device trigger config * Remove action and condition checks * Move config validation to own file * Fix tests * Fixes * Fixes * Small tweak
This commit is contained in:
parent
588bc26661
commit
e57e7e8449
11 changed files with 210 additions and 31 deletions
|
@ -63,7 +63,7 @@ def test_component_platform_not_found(isfile_patch, loop):
|
|||
assert res["components"].keys() == {"homeassistant"}
|
||||
assert res["except"] == {
|
||||
check_config.ERROR_STR: [
|
||||
"Component error: beer - Integration beer not found."
|
||||
"Component error: beer - Integration 'beer' not found."
|
||||
]
|
||||
}
|
||||
assert res["secret_cache"] == {}
|
||||
|
@ -77,7 +77,7 @@ def test_component_platform_not_found(isfile_patch, loop):
|
|||
assert res["components"]["light"] == []
|
||||
assert res["except"] == {
|
||||
check_config.ERROR_STR: [
|
||||
"Platform error light.beer - Integration beer not found."
|
||||
"Platform error light.beer - Integration 'beer' not found."
|
||||
]
|
||||
}
|
||||
assert res["secret_cache"] == {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue