1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Fix ZBT and Yellow switch unit tests (#155426)

This commit is contained in:
puddly
2025-10-29 10:33:20 -04:00
committed by GitHub
parent dff8e5221b
commit 49158fad48
3 changed files with 3 additions and 6 deletions

View File

@@ -99,8 +99,7 @@ async def test_switch_turn_on_off(
with (
patch(
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateClient",
autospec=True,
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateClient"
) as mock_client,
patch(
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateCoordinator.async_refresh"

View File

@@ -97,8 +97,7 @@ async def test_switch_turn_on_off(
with (
patch(
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateClient",
autospec=True,
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateClient"
) as mock_client,
patch(
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateCoordinator.async_refresh"

View File

@@ -98,8 +98,7 @@ async def test_switch_turn_on_off(
return_value={"board": "yellow"},
),
patch(
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateClient",
autospec=True,
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateClient"
) as mock_client,
patch(
"homeassistant.components.homeassistant_hardware.coordinator.FirmwareUpdateCoordinator.async_refresh"