From 87064882a37a1b37930a733680aad0b7a3e7c93a Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Sat, 8 Feb 2025 09:39:51 +0000 Subject: [PATCH] Fix warning --- tests/test_window_feature_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_window_feature_manager.py b/tests/test_window_feature_manager.py index 62f3110..4c60ccf 100644 --- a/tests/test_window_feature_manager.py +++ b/tests/test_window_feature_manager.py @@ -300,7 +300,7 @@ async def test_window_feature_manager_refresh_sensor_action_frost_only( with patch("homeassistant.core.StateMachine.get", return_value=State("sensor.the_motion_sensor", new_state)) as mock_get_state: # fmt:on # Configurer les méthodes mockées - fake_vtherm.save_target_temp = AsyncMock() + fake_vtherm.save_target_temp = MagicMock() fake_vtherm.set_hvac_off_reason = MagicMock() fake_vtherm.restore_target_temp = AsyncMock() fake_vtherm.change_target_temperature = AsyncMock() @@ -542,7 +542,7 @@ async def test_window_feature_manager_event_sensor_action_frost_only( with patch("homeassistant.helpers.condition.state", return_value=long_enough): # fmt:on # Configurer les méthodes mockées - fake_vtherm.save_target_temp = AsyncMock() + fake_vtherm.save_target_temp = MagicMock() fake_vtherm.set_hvac_off_reason = MagicMock() fake_vtherm.restore_target_temp = AsyncMock() fake_vtherm.change_target_temperature = AsyncMock()