diff --git a/tests/components/local_file/test_camera.py b/tests/components/local_file/test_camera.py index b9b2b19832e..8432420244e 100644 --- a/tests/components/local_file/test_camera.py +++ b/tests/components/local_file/test_camera.py @@ -14,6 +14,9 @@ async def test_loading_file(hass, hass_client): with mock.patch("os.path.isfile", mock.Mock(return_value=True)), mock.patch( "os.access", mock.Mock(return_value=True) + ), mock.patch( + "homeassistant.components.local_file.camera.mimetypes.guess_type", + mock.Mock(return_value=(None, None)), ): await async_setup_component( hass, @@ -138,6 +141,9 @@ async def test_update_file_path(hass): with mock.patch("os.path.isfile", mock.Mock(return_value=True)), mock.patch( "os.access", mock.Mock(return_value=True) + ), mock.patch( + "homeassistant.components.local_file.camera.mimetypes.guess_type", + mock.Mock(return_value=(None, None)), ): camera_1 = {"platform": "local_file", "file_path": "mock/path.jpg"}