Use async_load_fixture in async test functions (l-z) (#145717)

* Use async_load_fixture in async test functions (l-z)

* Adjust
This commit is contained in:
epenet
2025-06-01 15:29:17 +02:00
committed by GitHub
parent b318644998
commit a007e8dc26
46 changed files with 426 additions and 299 deletions

View File

@@ -16,7 +16,7 @@ from homeassistant.components.netatmo import DATA_CAMERAS, DATA_EVENTS, DOMAIN
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component
from tests.common import load_fixture
from tests.common import async_load_fixture
async def test_async_browse_media(hass: HomeAssistant) -> None:
@@ -26,7 +26,7 @@ async def test_async_browse_media(hass: HomeAssistant) -> None:
# Prepare cached Netatmo event date
hass.data[DOMAIN] = {}
hass.data[DOMAIN][DATA_EVENTS] = ast.literal_eval(
load_fixture("netatmo/events.txt")
await async_load_fixture(hass, "events.txt", DOMAIN)
)
hass.data[DOMAIN][DATA_CAMERAS] = {