mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Improve docstrings in climate trigger tests (#159438)
This commit is contained in:
@@ -395,7 +395,7 @@ async def test_climate_state_attribute_trigger_behavior_first(
|
|||||||
trigger: str,
|
trigger: str,
|
||||||
states: list[tuple[tuple[str, dict], int]],
|
states: list[tuple[tuple[str, dict], int]],
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test that the climate state trigger fires when any climate state changes to a specific state."""
|
"""Test that the climate state trigger fires when the first climate state changes to a specific state."""
|
||||||
other_entity_ids = set(target_climates) - {entity_id}
|
other_entity_ids = set(target_climates) - {entity_id}
|
||||||
|
|
||||||
# Set all climates, including the tested climate, to the initial state
|
# Set all climates, including the tested climate, to the initial state
|
||||||
@@ -529,7 +529,7 @@ async def test_climate_state_attribute_trigger_behavior_last(
|
|||||||
trigger: str,
|
trigger: str,
|
||||||
states: list[tuple[tuple[str, dict], int]],
|
states: list[tuple[tuple[str, dict], int]],
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test that the climate state trigger fires when any climate state changes to a specific state."""
|
"""Test that the climate state trigger fires when the last climate state changes to a specific state."""
|
||||||
other_entity_ids = set(target_climates) - {entity_id}
|
other_entity_ids = set(target_climates) - {entity_id}
|
||||||
|
|
||||||
# Set all climates, including the tested climate, to the initial state
|
# Set all climates, including the tested climate, to the initial state
|
||||||
|
|||||||
Reference in New Issue
Block a user