1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-01 22:23:08 +01:00

Add airgradient param fixture (#120241)

This commit is contained in:
Joost Lekkerkerker
2024-06-23 17:48:54 +02:00
committed by GitHub
parent 9769dec44b
commit 080d90b63a
8 changed files with 334 additions and 113 deletions

View File

@@ -27,7 +27,7 @@ from tests.common import (
async def test_all_entities(
hass: HomeAssistant,
snapshot: SnapshotAssertion,
mock_airgradient_client: AsyncMock,
airgradient_devices: AsyncMock,
mock_config_entry: MockConfigEntry,
entity_registry: er.EntityRegistry,
) -> None:
@@ -53,7 +53,7 @@ async def test_create_entities(
assert len(hass.states.async_all()) == 0
mock_airgradient_client.get_current_measures.return_value = Measures.from_json(
load_fixture("current_measures.json", DOMAIN)
load_fixture("current_measures_indoor.json", DOMAIN)
)
freezer.tick(timedelta(minutes=1))
async_fire_time_changed(hass)