mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Convert some tests to async and drop usage get_test_home_assistant (#64394)
* Fix some tests * Update MS tests * Convert last logbook tests to async
This commit is contained in:
@@ -279,8 +279,7 @@ async def test_snapshot_service(hass, mock_camera):
|
||||
mopen = mock_open()
|
||||
|
||||
with patch("homeassistant.components.camera.open", mopen, create=True), patch(
|
||||
"homeassistant.components.camera.os.path.exists",
|
||||
Mock(spec="os.path.exists", return_value=True),
|
||||
"homeassistant.components.camera.os.makedirs",
|
||||
), patch.object(hass.config, "is_allowed_path", return_value=True):
|
||||
await hass.services.async_call(
|
||||
camera.DOMAIN,
|
||||
|
||||
Reference in New Issue
Block a user