From b973455037a163b9753df3b493c82b545dac74f4 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 30 Jul 2024 16:28:55 +0200 Subject: [PATCH] Fix template image test affecting other tests (#122849) --- tests/components/template/test_image.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/components/template/test_image.py b/tests/components/template/test_image.py index d4e98d7a3ca..101b475956a 100644 --- a/tests/components/template/test_image.py +++ b/tests/components/template/test_image.py @@ -76,10 +76,12 @@ async def _assert_state( assert body == expected_image +@respx.mock @pytest.mark.freeze_time("2024-07-09 00:00:00+00:00") async def test_setup_config_entry( hass: HomeAssistant, snapshot: SnapshotAssertion, + imgbytes_jpg, ) -> None: """Test the config flow.""" @@ -538,6 +540,7 @@ async def test_trigger_image_custom_entity_picture( ) +@respx.mock async def test_device_id( hass: HomeAssistant, device_registry: dr.DeviceRegistry,