Fix warning generated by surpetcare test (#43598)

This commit is contained in:
Paulus Schoutsen 2020-11-24 12:40:25 +01:00 committed by GitHub
parent 8f18af9e80
commit 755f15abe3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,8 +7,8 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
from tests.async_mock import AsyncMock, patch
@fixture()
def surepetcare(hass):
@fixture
async def surepetcare(hass):
"""Mock the SurePetcare for easier testing."""
with patch("homeassistant.components.surepetcare.SurePetcare") as mock_surepetcare:
instance = mock_surepetcare.return_value = SurePetcare(