From d7cd98ca2eea4d0dd48b4627d7df2f72c438d4bf Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 4 Nov 2025 15:45:45 -0600 Subject: [PATCH] one down --- tests/components/shelly/test_config_flow.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/tests/components/shelly/test_config_flow.py b/tests/components/shelly/test_config_flow.py index 0ce5249735d..796f0e21f35 100644 --- a/tests/components/shelly/test_config_flow.py +++ b/tests/components/shelly/test_config_flow.py @@ -1944,11 +1944,10 @@ async def test_bluetooth_discovery( with ( patch( "homeassistant.components.shelly.config_flow.async_provision_wifi", - new=AsyncMock(), ), patch( "homeassistant.components.shelly.config_flow.async_lookup_device_by_name", - new=AsyncMock(return_value=("1.1.1.1", 80)), + return_value=("1.1.1.1", 80), ), patch( "homeassistant.components.shelly.config_flow.get_info", @@ -2093,11 +2092,10 @@ async def test_bluetooth_wifi_scan_success( with ( patch( "homeassistant.components.shelly.config_flow.async_provision_wifi", - new=AsyncMock(), ), patch( "homeassistant.components.shelly.config_flow.async_lookup_device_by_name", - new=AsyncMock(return_value=("1.1.1.1", 80)), + return_value=("1.1.1.1", 80), ), patch( "homeassistant.components.shelly.config_flow.get_info", @@ -2178,11 +2176,10 @@ async def test_bluetooth_wifi_scan_failure( with ( patch( "homeassistant.components.shelly.config_flow.async_provision_wifi", - new=AsyncMock(), ), patch( "homeassistant.components.shelly.config_flow.async_lookup_device_by_name", - new=AsyncMock(return_value=("1.1.1.1", 80)), + return_value=("1.1.1.1", 80), ), patch( "homeassistant.components.shelly.config_flow.get_info", @@ -2357,11 +2354,11 @@ async def test_bluetooth_wifi_provision_failure( with ( patch( "homeassistant.components.shelly.config_flow.async_provision_wifi", - new=AsyncMock(side_effect=DeviceConnectionError), + side_effect=DeviceConnectionError, ), patch( "homeassistant.components.shelly.config_flow.async_lookup_device_by_name", - new=AsyncMock(return_value=None), + return_value=None, ), ): result = await hass.config_entries.flow.async_configure( @@ -2399,11 +2396,10 @@ async def test_bluetooth_wifi_provision_failure( with ( patch( "homeassistant.components.shelly.config_flow.async_provision_wifi", - new=AsyncMock(), ), patch( "homeassistant.components.shelly.config_flow.async_lookup_device_by_name", - new=AsyncMock(return_value=("1.1.1.1", 80)), + return_value=("1.1.1.1", 80), ), patch( "homeassistant.components.shelly.config_flow.get_info",