mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Cleanup expected_lingering_tasks in knx (#89279)
This commit is contained in:
parent
c51bde9a26
commit
14bf68ad03
@ -1,5 +1,4 @@
|
||||
"""Test KNX climate."""
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.climate import PRESET_ECO, PRESET_SLEEP, HVACMode
|
||||
from homeassistant.components.knx.schema import ClimateSchema
|
||||
@ -17,8 +16,6 @@ RAW_FLOAT_21_0 = (0x0C, 0x1A)
|
||||
RAW_FLOAT_22_0 = (0x0C, 0x4C)
|
||||
|
||||
|
||||
# This tests needs to be adjusted to remove lingering tasks
|
||||
@pytest.mark.parametrize("expected_lingering_tasks", [True])
|
||||
async def test_climate_basic_temperature_set(
|
||||
hass: HomeAssistant, knx: KNXTestKit
|
||||
) -> None:
|
||||
@ -58,8 +55,6 @@ async def test_climate_basic_temperature_set(
|
||||
assert len(events) == 1
|
||||
|
||||
|
||||
# This tests needs to be adjusted to remove lingering tasks
|
||||
@pytest.mark.parametrize("expected_lingering_tasks", [True])
|
||||
async def test_climate_hvac_mode(hass: HomeAssistant, knx: KNXTestKit) -> None:
|
||||
"""Test KNX climate hvac mode."""
|
||||
events = async_capture_events(hass, "state_changed")
|
||||
@ -113,8 +108,6 @@ async def test_climate_hvac_mode(hass: HomeAssistant, knx: KNXTestKit) -> None:
|
||||
await knx.assert_write("1/2/6", (0x01,))
|
||||
|
||||
|
||||
# This tests needs to be adjusted to remove lingering tasks
|
||||
@pytest.mark.parametrize("expected_lingering_tasks", [True])
|
||||
async def test_climate_preset_mode(
|
||||
hass: HomeAssistant, knx: KNXTestKit, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
@ -182,8 +175,6 @@ async def test_climate_preset_mode(
|
||||
assert len(knx.xknx.devices) == 0
|
||||
|
||||
|
||||
# This tests needs to be adjusted to remove lingering tasks
|
||||
@pytest.mark.parametrize("expected_lingering_tasks", [True])
|
||||
async def test_update_entity(hass: HomeAssistant, knx: KNXTestKit) -> None:
|
||||
"""Test update climate entity for KNX."""
|
||||
events = async_capture_events(hass, "state_changed")
|
||||
@ -229,8 +220,6 @@ async def test_update_entity(hass: HomeAssistant, knx: KNXTestKit) -> None:
|
||||
await knx.assert_read("1/2/7")
|
||||
|
||||
|
||||
# This tests needs to be adjusted to remove lingering tasks
|
||||
@pytest.mark.parametrize("expected_lingering_tasks", [True])
|
||||
async def test_command_value_idle_mode(hass: HomeAssistant, knx: KNXTestKit) -> None:
|
||||
"""Test KNX climate command_value."""
|
||||
await knx.setup_integration(
|
||||
|
@ -1,5 +1,4 @@
|
||||
"""Test KNX cover."""
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.knx.schema import CoverSchema
|
||||
from homeassistant.const import CONF_NAME, STATE_CLOSING
|
||||
@ -10,8 +9,6 @@ from .conftest import KNXTestKit
|
||||
from tests.common import async_capture_events
|
||||
|
||||
|
||||
# This tests needs to be adjusted to remove lingering tasks
|
||||
@pytest.mark.parametrize("expected_lingering_tasks", [True])
|
||||
async def test_cover_basic(hass: HomeAssistant, knx: KNXTestKit) -> None:
|
||||
"""Test KNX cover basic."""
|
||||
events = async_capture_events(hass, "state_changed")
|
||||
|
Loading…
x
Reference in New Issue
Block a user