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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user