From 0313d4971ac93a0c8d7983d91b2eaac2a5c12d79 Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Sat, 29 Aug 2026 18:37:36 +0200 Subject: [PATCH] Add 100% coverage to coordinator in Fritz (#180647) --- tests/components/fritz/test_coordinator.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/components/fritz/test_coordinator.py b/tests/components/fritz/test_coordinator.py index 39eaf06a2a5e..ddeb752cf121 100644 --- a/tests/components/fritz/test_coordinator.py +++ b/tests/components/fritz/test_coordinator.py @@ -527,6 +527,17 @@ async def test_trigger_methods( fritz_tools.fritz_call.hangup.assert_called_once() +async def test_trigger_reconnect_reraises_unexpected_error( + fritz_tools, +) -> None: + """Test async_trigger_reconnect re-raises errors other than DisconnectInProgress.""" + fritz_tools.connection.call_action = MagicMock( + side_effect=FritzConnectionException("some other error") + ) + with pytest.raises(FritzConnectionException): + await fritz_tools.async_trigger_reconnect() + + async def test_avmwrapper_service_call_branches( hass: HomeAssistant, caplog: pytest.LogCaptureFixture,