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:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user