mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 05:20:17 +00:00
Use remove_device helper in tests (2/2) (#116442)
Use remove_device helper in tests (part 2)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user