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:
Jan-Philipp Benecke 2023-11-12 19:45:30 +01:00 committed by GitHub
parent abb1328a67
commit 9ab1cb83d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 239 additions and 161 deletions

View file

@ -76,7 +76,9 @@ def thermobox_fixture():
return (feature, "climate.thermobox_thermostat")
async def test_init(saunabox, hass: HomeAssistant) -> None:
async def test_init(
saunabox, hass: HomeAssistant, device_registry: dr.DeviceRegistry
) -> None:
"""Test default state."""
_, entity_id = saunabox
@ -102,7 +104,6 @@ async def test_init(saunabox, hass: HomeAssistant) -> None:
assert state.state == STATE_UNKNOWN
device_registry = dr.async_get(hass)
device = device_registry.async_get(entry.device_id)
assert device.name == "My sauna"