diff --git a/custom_components/versatile_thermostat/tests/const.py b/custom_components/versatile_thermostat/tests/const.py index 4a9c8d8..1c46540 100644 --- a/custom_components/versatile_thermostat/tests/const.py +++ b/custom_components/versatile_thermostat/tests/const.py @@ -15,6 +15,7 @@ from custom_components.versatile_thermostat.const import ( CONF_THERMOSTAT_CLIMATE, CONF_THERMOSTAT_SWITCH, CONF_THERMOSTAT_TYPE, + CONF_AC_MODE, CONF_TEMP_SENSOR, CONF_EXTERNAL_TEMP_SENSOR, CONF_CYCLE_MIN, @@ -112,6 +113,7 @@ MOCK_TH_OVER_SWITCH_TPI_CONFIG = { MOCK_TH_OVER_CLIMATE_TYPE_CONFIG = { CONF_CLIMATE: "climate.mock_climate", + CONF_AC_MODE: False, } MOCK_PRESETS_CONFIG = { diff --git a/custom_components/versatile_thermostat/tests/test_window.py b/custom_components/versatile_thermostat/tests/test_window.py index bff77ba..b59d4b4 100644 --- a/custom_components/versatile_thermostat/tests/test_window.py +++ b/custom_components/versatile_thermostat/tests/test_window.py @@ -94,7 +94,7 @@ async def test_window_management_time_not_enough( await try_window_condition(None) assert entity.window_state == STATE_OFF - await entity.remove_thermostat() + entity.remove_thermostat() @pytest.mark.parametrize("expected_lingering_tasks", [True]) @@ -234,7 +234,7 @@ async def test_window_management_time_enough( assert entity.preset_mode is PRESET_BOOST # Clean the entity - await entity.remove_thermostat() + entity.remove_thermostat() @pytest.mark.parametrize("expected_lingering_tasks", [True]) @@ -418,7 +418,7 @@ async def test_window_auto_fast(hass: HomeAssistant, skip_hass_states_is_state): assert entity.hvac_mode is HVACMode.HEAT # Clean the entity - await entity.remove_thermostat() + entity.remove_thermostat() @pytest.mark.parametrize("expected_lingering_tasks", [True]) @@ -561,7 +561,7 @@ async def test_window_auto_auto_stop(hass: HomeAssistant, skip_hass_states_is_st assert entity.preset_mode is PRESET_BOOST # Clean the entity - await entity.remove_thermostat() + entity.remove_thermostat() @pytest.mark.parametrize("expected_lingering_tasks", [True]) @@ -670,4 +670,4 @@ async def test_window_auto_no_on_percent( assert entity.hvac_mode is HVACMode.HEAT # Clean the entity - await entity.remove_thermostat() + entity.remove_thermostat()