1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Update a* tests to use device & entity registry fixtures (#103711)

This commit is contained in:
Franck Nijhof
2023-11-09 20:46:20 +01:00
committed by GitHub
parent b81f15725f
commit 04e0e2bd75
39 changed files with 321 additions and 262 deletions

View File

@@ -14,10 +14,11 @@ from homeassistant.helpers import entity_registry as er
from .common import setup_platform
async def test_entity_registry(hass: HomeAssistant) -> None:
async def test_entity_registry(
hass: HomeAssistant, entity_registry: er.EntityRegistry
) -> None:
"""Tests that the devices are registered in the entity registry."""
await setup_platform(hass, SENSOR_DOMAIN)
entity_registry = er.async_get(hass)
entry = entity_registry.async_get("sensor.environment_sensor_humidity")
assert entry.unique_id == "13545b21f4bdcd33d9abd461f8443e65-humidity"