mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
27 lines
763 B
Python
27 lines
763 B
Python
"""Test for the smhi weather entity."""
|
|
|
|
import pytest
|
|
from syrupy.assertion import SnapshotAssertion
|
|
|
|
from homeassistant.const import Platform
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers.entity_registry import EntityRegistry
|
|
|
|
from tests.common import MockConfigEntry, snapshot_platform
|
|
|
|
|
|
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
|
|
@pytest.mark.parametrize(
|
|
"load_platforms",
|
|
[[Platform.SENSOR]],
|
|
)
|
|
async def test_sensor_setup(
|
|
hass: HomeAssistant,
|
|
entity_registry: EntityRegistry,
|
|
load_int: MockConfigEntry,
|
|
snapshot: SnapshotAssertion,
|
|
) -> None:
|
|
"""Test for successfully setting up the smhi sensors."""
|
|
|
|
await snapshot_platform(hass, entity_registry, snapshot, load_int.entry_id)
|