Enable Ruff PT015 (#86775)

This commit is contained in:
Franck Nijhof 2023-01-27 11:10:29 +01:00 committed by GitHub
parent 49148421cb
commit 57cf11f067
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 43 additions and 36 deletions

View file

@ -4404,7 +4404,7 @@ async def test_validate_action_config(hass):
hass, validated_config[action_type]
)
except vol.Invalid as err:
assert False, f"{action_type} config invalid: {err}"
pytest.fail(f"{action_type} config invalid: {err}")
# Verify non-static actions have validated
for action_type, paths_to_templates in expected_templates.items():