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

Log script condition warnings with the instance logger (#154966)

This commit is contained in:
karwosts
2025-10-24 09:42:17 -07:00
committed by GitHub
parent a48b915d90
commit 03b15f1dba
2 changed files with 38 additions and 44 deletions

View File

@@ -3181,12 +3181,9 @@ async def test_repeat_limits(
title_condition = condition.title()
assert f"{title_condition} condition" in caplog.text
assert f"in script `Test {condition}` looped 5 times" in caplog.text
assert (
f"script `Test {condition}` terminated because it looped 10 times"
in caplog.text
)
assert f"Test {condition}: {title_condition} condition" in caplog.text
assert "looped 5 times" in caplog.text
assert "terminated because it looped 10 times" in caplog.text
assert len(events) == 10