Skip to content

Commit 49158fa

Browse files
authored
Fix ZBT and Yellow switch unit tests (#155426)
1 parent dff8e52 commit 49158fa

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

tests/components/homeassistant_connect_zbt2/test_switch.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ async def test_switch_turn_on_off(
9999

100100
with (
101101
patch(
102-
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateClient",
103-
autospec=True,
102+
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateClient"
104103
) as mock_client,
105104
patch(
106105
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateCoordinator.async_refresh"

tests/components/homeassistant_sky_connect/test_switch.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ async def test_switch_turn_on_off(
9797

9898
with (
9999
patch(
100-
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateClient",
101-
autospec=True,
100+
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateClient"
102101
) as mock_client,
103102
patch(
104103
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateCoordinator.async_refresh"

tests/components/homeassistant_yellow/test_switch.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ async def test_switch_turn_on_off(
9898
return_value={"board": "yellow"},
9999
),
100100
patch(
101-
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateClient",
102-
autospec=True,
101+
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateClient"
103102
) as mock_client,
104103
patch(
105104
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateCoordinator.async_refresh"

0 commit comments

Comments
 (0)