mirror of
https://github.com/elisspace/core.git
synced 2026-09-30 06:19:55 +00:00
Fix RM mini 3 update manager (#40215)
This commit is contained in:
committed by
Paulus Schoutsen
parent
d37fe1fbb6
commit
8a39bea761
@@ -85,6 +85,9 @@ class BroadlinkDevice:
|
||||
with patch(
|
||||
"homeassistant.components.broadlink.device.blk.gendevice",
|
||||
return_value=mock_api,
|
||||
), patch(
|
||||
"homeassistant.components.broadlink.updater.blk.discover",
|
||||
return_value=[mock_api],
|
||||
):
|
||||
await hass.config_entries.async_setup(mock_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
@@ -179,7 +179,7 @@ async def test_device_setup_update_authorization_error(hass):
|
||||
|
||||
async def test_device_setup_update_authentication_error(hass):
|
||||
"""Test we handle an authentication error in the update step."""
|
||||
device = get_device("Living Room")
|
||||
device = get_device("Garage")
|
||||
mock_api = device.get_mock_api()
|
||||
mock_api.check_sensors.side_effect = blke.AuthorizationError()
|
||||
mock_api.auth.side_effect = (None, blke.AuthenticationError())
|
||||
@@ -207,7 +207,7 @@ async def test_device_setup_update_authentication_error(hass):
|
||||
|
||||
async def test_device_setup_update_broadlink_exception(hass):
|
||||
"""Test we handle a Broadlink exception in the update step."""
|
||||
device = get_device("Living Room")
|
||||
device = get_device("Garage")
|
||||
mock_api = device.get_mock_api()
|
||||
mock_api.check_sensors.side_effect = blke.BroadlinkException()
|
||||
mock_entry = device.get_mock_entry()
|
||||
|
||||
Reference in New Issue
Block a user