|
12 | 12 | ) |
13 | 13 | from homeassistant.const import ATTR_LABEL_ID, CONF_ENTITY_ID |
14 | 14 | from homeassistant.core import HomeAssistant, ServiceCall |
15 | | -from homeassistant.setup import async_setup_component |
16 | 15 |
|
17 | 16 | from tests.components import ( |
18 | 17 | StateDescription, |
@@ -107,8 +106,6 @@ async def test_climate_state_trigger_behavior_any( |
107 | 106 | states: list[StateDescription], |
108 | 107 | ) -> None: |
109 | 108 | """Test that the climate state trigger fires when any climate state changes to a specific state.""" |
110 | | - await async_setup_component(hass, "climate", {}) |
111 | | - |
112 | 109 | other_entity_ids = set(target_climates) - {entity_id} |
113 | 110 |
|
114 | 111 | # Set all climates, including the tested climate, to the initial state |
@@ -171,8 +168,6 @@ async def test_climate_state_attribute_trigger_behavior_any( |
171 | 168 | states: list[StateDescription], |
172 | 169 | ) -> None: |
173 | 170 | """Test that the climate state trigger fires when any climate state changes to a specific state.""" |
174 | | - await async_setup_component(hass, "climate", {}) |
175 | | - |
176 | 171 | other_entity_ids = set(target_climates) - {entity_id} |
177 | 172 |
|
178 | 173 | # Set all climates, including the tested climate, to the initial state |
@@ -239,8 +234,6 @@ async def test_climate_state_trigger_behavior_first( |
239 | 234 | states: list[StateDescription], |
240 | 235 | ) -> None: |
241 | 236 | """Test that the climate state trigger fires when the first climate changes to a specific state.""" |
242 | | - await async_setup_component(hass, "climate", {}) |
243 | | - |
244 | 237 | other_entity_ids = set(target_climates) - {entity_id} |
245 | 238 |
|
246 | 239 | # Set all climates, including the tested climate, to the initial state |
@@ -302,8 +295,6 @@ async def test_climate_state_attribute_trigger_behavior_first( |
302 | 295 | states: list[tuple[tuple[str, dict], int]], |
303 | 296 | ) -> None: |
304 | 297 | """Test that the climate state trigger fires when any climate state changes to a specific state.""" |
305 | | - await async_setup_component(hass, "climate", {}) |
306 | | - |
307 | 298 | other_entity_ids = set(target_climates) - {entity_id} |
308 | 299 |
|
309 | 300 | # Set all climates, including the tested climate, to the initial state |
@@ -369,8 +360,6 @@ async def test_climate_state_trigger_behavior_last( |
369 | 360 | states: list[StateDescription], |
370 | 361 | ) -> None: |
371 | 362 | """Test that the climate state trigger fires when the last climate changes to a specific state.""" |
372 | | - await async_setup_component(hass, "climate", {}) |
373 | | - |
374 | 363 | other_entity_ids = set(target_climates) - {entity_id} |
375 | 364 |
|
376 | 365 | # Set all climates, including the tested climate, to the initial state |
@@ -431,8 +420,6 @@ async def test_climate_state_attribute_trigger_behavior_last( |
431 | 420 | states: list[tuple[tuple[str, dict], int]], |
432 | 421 | ) -> None: |
433 | 422 | """Test that the climate state trigger fires when any climate state changes to a specific state.""" |
434 | | - await async_setup_component(hass, "climate", {}) |
435 | | - |
436 | 423 | other_entity_ids = set(target_climates) - {entity_id} |
437 | 424 |
|
438 | 425 | # Set all climates, including the tested climate, to the initial state |
|
0 commit comments