Use remove_device helper in tests (2/2) (#116442)

Use remove_device helper in tests (part 2)
This commit is contained in:
epenet
2024-04-30 12:50:35 +02:00
committed by GitHub
parent d84d2109c2
commit a3942e019b
17 changed files with 79 additions and 347 deletions

View File

@@ -399,20 +399,6 @@ async def assert_devices_and_entities_created(
assert root_device.via_device_id is None
async def remove_device(ws_client, device_id, config_entry_id):
"""Remove config entry from a device."""
await ws_client.send_json(
{
"id": 5,
"type": "config/device_registry/remove_config_entry",
"config_entry_id": config_entry_id,
"device_id": device_id,
}
)
response = await ws_client.receive_json()
return response["success"]
def get_next_aid():
"""Get next aid."""
return model_mixin.id_counter + 1