1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Improve docstrings in condition tests (#161431)

This commit is contained in:
Erik Montnemery
2026-01-23 21:28:41 +01:00
committed by GitHub
parent 99827a86b4
commit 6c1b44aae2
3 changed files with 15 additions and 3 deletions
+5 -1
View File
@@ -27,7 +27,11 @@ async def target_fans(hass: HomeAssistant) -> list[str]:
@pytest.fixture
async def target_switches(hass: HomeAssistant) -> list[str]:
"""Create multiple switch entities associated with different targets."""
"""Create multiple switch entities associated with different targets.
Note: The switches are used to ensure that only fan entities are considered
in the condition evaluation and not other toggle entities.
"""
return (await target_entities(hass, "switch"))["included"]
+5 -1
View File
@@ -27,7 +27,11 @@ async def target_lights(hass: HomeAssistant) -> list[str]:
@pytest.fixture
async def target_switches(hass: HomeAssistant) -> list[str]:
"""Create multiple switch entities associated with different targets."""
"""Create multiple switch entities associated with different targets.
Note: The switches are used to ensure that only light entities are considered
in the condition evaluation and not other toggle entities.
"""
return (await target_entities(hass, "switch"))["included"]
+5 -1
View File
@@ -27,7 +27,11 @@ async def target_sirens(hass: HomeAssistant) -> list[str]:
@pytest.fixture
async def target_switches(hass: HomeAssistant) -> list[str]:
"""Create multiple switch entities associated with different targets."""
"""Create multiple switch entities associated with different targets.
Note: The switches are used to ensure that only siren entities are considered
in the condition evaluation and not other toggle entities.
"""
return (await target_entities(hass, "switch"))["included"]