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:
Erik Montnemery 2019-09-27 17:48:48 +02:00 committed by GitHub
parent 588bc26661
commit e57e7e8449
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 210 additions and 31 deletions

View file

@ -75,7 +75,7 @@ async def test_component_platform_not_found(hass, loop):
assert res.keys() == {"homeassistant"}
assert res.errors[0] == CheckConfigError(
"Component error: beer - Integration beer not found.", None, None
"Component error: beer - Integration 'beer' not found.", None, None
)
# Only 1 error expected
@ -95,7 +95,7 @@ async def test_component_platform_not_found_2(hass, loop):
assert res["light"] == []
assert res.errors[0] == CheckConfigError(
"Platform error light.beer - Integration beer not found.", None, None
"Platform error light.beer - Integration 'beer' not found.", None, None
)
# Only 1 error expected