Use registry fixtures in tests (t-u) (#118297)
This commit is contained in:
parent
ef6c7621cf
commit
2545b7d3bb
30 changed files with 254 additions and 191 deletions
|
@ -37,7 +37,10 @@ async def test_text_camera_remove(
|
|||
|
||||
|
||||
async def test_text_camera_setup(
|
||||
hass: HomeAssistant, ufp: MockUFPFixture, doorbell: Camera
|
||||
hass: HomeAssistant,
|
||||
entity_registry: er.EntityRegistry,
|
||||
ufp: MockUFPFixture,
|
||||
doorbell: Camera,
|
||||
) -> None:
|
||||
"""Test text entity setup for camera devices."""
|
||||
|
||||
|
@ -47,8 +50,6 @@ async def test_text_camera_setup(
|
|||
await init_entry(hass, ufp, [doorbell])
|
||||
assert_entity_counts(hass, Platform.TEXT, 1, 1)
|
||||
|
||||
entity_registry = er.async_get(hass)
|
||||
|
||||
description = CAMERA[0]
|
||||
unique_id, entity_id = ids_from_device_description(
|
||||
Platform.TEXT, doorbell, description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue