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:
@@ -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"]
|
||||
|
||||
|
||||
|
||||
@@ -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"]
|
||||
|
||||
|
||||
|
||||
@@ -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"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user