1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Move sun conditions to the sun integration (#144742)

This commit is contained in:
Erik Montnemery
2025-05-13 00:03:37 +02:00
committed by GitHub
parent e69ca0cf80
commit 0128d85999
7 changed files with 1405 additions and 1340 deletions

View File

@@ -1460,11 +1460,6 @@ def test_key_value_schemas_with_default() -> None:
[
({"delay": "{{ invalid"}, "should be format 'HH:MM'"),
({"wait_template": "{{ invalid"}, "invalid template"),
({"condition": "invalid"}, "Unexpected value for condition: 'invalid'"),
(
{"condition": "not", "conditions": {"condition": "invalid"}},
"Unexpected value for condition: 'invalid'",
),
# The validation error message could be improved to explain that this is not
# a valid shorthand template
(
@@ -1496,7 +1491,7 @@ def test_key_value_schemas_with_default() -> None:
)
@pytest.mark.usefixtures("hass")
def test_script(caplog: pytest.LogCaptureFixture, config: dict, error: str) -> None:
"""Test script validation is user friendly."""
"""Test script action validation is user friendly."""
with pytest.raises(vol.Invalid, match=error):
cv.script_action(config)