Skip to content

Commit

Permalink
Use entity_registry fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbede committed Nov 9, 2023
1 parent 37a1d13 commit 92fb190
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/components/discovergy/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@
async def test_sensor(
hass: HomeAssistant,
setup_integration: ComponentSetup,
entity_registry: er.EntityRegistry,
) -> None:
"""Test sensor setup and update."""
await setup_integration()

entry = er.async_get(hass).async_get(
entry = entity_registry.async_get(
"sensor.electricity_teststrasse_1_total_consumption"
)
assert entry
Expand Down

0 comments on commit 92fb190

Please sign in to comment.