Fix slow samsungtv test (#66696)

pull/62710/head
epenet 2022-02-16 23:04:50 +01:00 committed by GitHub
parent 58742f8be6
commit 2687f61428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -455,8 +455,9 @@ async def test_ssdp_websocket_not_supported(hass: HomeAssistant):
"homeassistant.components.samsungtv.bridge.Remote",
side_effect=OSError("Boom"),
), patch(
"homeassistant.components.samsungtv.bridge.SamsungTVWS.open",
side_effect=WebSocketProtocolException("Boom"),
"homeassistant.components.samsungtv.bridge.SamsungTVWS",
) as remotews, patch.object(
remotews, "open", side_effect=WebSocketProtocolException("Boom")
):
# device not supported
result = await hass.config_entries.flow.async_init(