From 24bb3a705ce58ecd355d49ab4ac48b5569542893 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Mon, 6 Feb 2023 01:02:06 +0100 Subject: [PATCH] Adjust matter test exception argument (#87282) --- tests/components/matter/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/matter/test_init.py b/tests/components/matter/test_init.py index a3febe799a5..b691e0a766b 100644 --- a/tests/components/matter/test_init.py +++ b/tests/components/matter/test_init.py @@ -83,7 +83,7 @@ async def test_home_assistant_stop( assert matter_client.disconnect.call_count == 1 -@pytest.mark.parametrize("error", [CannotConnect("Boom"), Exception("Boom")]) +@pytest.mark.parametrize("error", [CannotConnect(Exception("Boom")), Exception("Boom")]) async def test_connect_failed( hass: HomeAssistant, matter_client: MagicMock,