From 142a670b4a22d3aea09182e8a0dd2d78e98cf3b6 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 8 Sep 2026 00:47:22 -0700 Subject: [PATCH] Fix cloud support package snapshots with verbose logging (#181399) --- tests/components/cloud/snapshots/test_http_api.ambr | 2 -- tests/components/cloud/test_http_api.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/cloud/snapshots/test_http_api.ambr b/tests/components/cloud/snapshots/test_http_api.ambr index 8be82b31bc8c..f15149189a55 100644 --- a/tests/components/cloud/snapshots/test_http_api.ambr +++ b/tests/components/cloud/snapshots/test_http_api.ambr @@ -238,7 +238,6 @@
Logs ```logs - 2025-02-10 12:00:00.000 INFO (MainThread) [hass_nabucasa.iot] This message will be dropped since this test patches MAX_RECORDS 2025-02-10 12:00:00.000 INFO (MainThread) [hass_nabucasa.iot] Hass nabucasa log 2025-02-10 12:00:00.000 WARNING (MainThread) [snitun.utils.aiohttp_client] Snitun log 2025-02-10 12:00:00.000 ERROR (MainThread) [homeassistant.components.cloud.client] Cloud log @@ -320,7 +319,6 @@
Logs ```logs - 2025-02-10 12:00:00.000 INFO (MainThread) [hass_nabucasa.iot] This message will be dropped since this test patches MAX_RECORDS 2025-02-10 12:00:00.000 INFO (MainThread) [hass_nabucasa.iot] Hass nabucasa log 2025-02-10 12:00:00.000 WARNING (MainThread) [snitun.utils.aiohttp_client] Snitun log 2025-02-10 12:00:00.000 ERROR (MainThread) [homeassistant.components.cloud.client] Cloud log diff --git a/tests/components/cloud/test_http_api.py b/tests/components/cloud/test_http_api.py index 3d57ac36f5e1..9ce8c3b7e848 100644 --- a/tests/components/cloud/test_http_api.py +++ b/tests/components/cloud/test_http_api.py @@ -2916,6 +2916,7 @@ async def test_download_support_package( assert await req.text() == snapshot +@patch("homeassistant.components.cloud.helpers.FixedSizeQueueLogHandler.MAX_RECORDS", 3) @pytest.mark.usefixtures("enable_custom_integrations") async def test_download_support_package_custom_components_error( hass: HomeAssistant, @@ -3035,6 +3036,7 @@ async def test_download_support_package_custom_components_error( assert await req.text() == snapshot +@patch("homeassistant.components.cloud.helpers.FixedSizeQueueLogHandler.MAX_RECORDS", 3) @pytest.mark.usefixtures("enable_custom_integrations") async def test_download_support_package_integration_load_error( hass: HomeAssistant,