From 39f39a6ba7d6af75cae98c318321daac4b550212 Mon Sep 17 00:00:00 2001 From: Erik Date: Wed, 4 Dec 2024 15:56:30 +0100 Subject: [PATCH] Fix tests --- tests/components/cloud/test_backup.py | 1 + tests/components/kitchen_sink/test_backup.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/components/cloud/test_backup.py b/tests/components/cloud/test_backup.py index faeacbe006c87c..41414426f5243e 100644 --- a/tests/components/cloud/test_backup.py +++ b/tests/components/cloud/test_backup.py @@ -525,6 +525,7 @@ async def test_agents_upload_not_protected( size=0.0, ) with ( + patch("pathlib.Path.open"), patch( "homeassistant.components.backup.manager.read_backup", return_value=test_backup, diff --git a/tests/components/kitchen_sink/test_backup.py b/tests/components/kitchen_sink/test_backup.py index d36b2878713407..2e53216d43e2cb 100644 --- a/tests/components/kitchen_sink/test_backup.py +++ b/tests/components/kitchen_sink/test_backup.py @@ -141,6 +141,7 @@ async def test_agents_upload( ) with ( + patch("pathlib.Path.open"), patch( "homeassistant.components.backup.manager.BackupManager.async_get_backup", ) as fetch_backup,