From b314e2b1a14a528f2fd95bdbb4b98104c0f5bc86 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Sun, 2 Jul 2023 16:32:43 +0200 Subject: [PATCH] Fix songpal test_setup_failed test (#95712) --- tests/components/songpal/test_media_player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/songpal/test_media_player.py b/tests/components/songpal/test_media_player.py index d5e89e887d1..534e2e6e9e6 100644 --- a/tests/components/songpal/test_media_player.py +++ b/tests/components/songpal/test_media_player.py @@ -103,8 +103,8 @@ async def test_setup_failed( await hass.async_block_till_done() all_states = hass.states.async_all() assert len(all_states) == 0 - warning_records = [x for x in caplog.records if x.levelno == logging.WARNING] - assert len(warning_records) == 2 + assert "[name(http://0.0.0.0:10000/sony)] Unable to connect" in caplog.text + assert "Platform songpal not ready yet: Unable to do POST request" in caplog.text assert not any(x.levelno == logging.ERROR for x in caplog.records) caplog.clear()