Update a-c* tests to use entity & device registry fixtures (#103793)
* Update a-c* tests to use entity & device registry fixtures * Revert some changes * Revert formatting * retrigger CI
This commit is contained in:
parent
abb1328a67
commit
9ab1cb83d8
19 changed files with 239 additions and 161 deletions
|
@ -25,13 +25,13 @@ from tests.common import MockConfigEntry
|
|||
|
||||
async def test_sensor(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
entity_registry: er.EntityRegistry,
|
||||
mock_cpuinfo: MagicMock,
|
||||
init_integration: MockConfigEntry,
|
||||
) -> None:
|
||||
"""Test the CPU Speed sensor."""
|
||||
await async_setup_component(hass, "homeassistant", {})
|
||||
entity_registry = er.async_get(hass)
|
||||
device_registry = dr.async_get(hass)
|
||||
|
||||
entry = entity_registry.async_get("sensor.cpu_speed")
|
||||
assert entry
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue