mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Fix zwave_js device remove test (#45864)
This commit is contained in:
@@ -313,7 +313,7 @@ async def test_removed_device(hass, client, multiple_devices, integration):
|
|||||||
entity_entries = entity_registry.async_entries_for_config_entry(
|
entity_entries = entity_registry.async_entries_for_config_entry(
|
||||||
ent_reg, integration.entry_id
|
ent_reg, integration.entry_id
|
||||||
)
|
)
|
||||||
assert len(entity_entries) == 18
|
assert len(entity_entries) == 24
|
||||||
|
|
||||||
# Remove a node and reload the entry
|
# Remove a node and reload the entry
|
||||||
old_node = nodes.pop(13)
|
old_node = nodes.pop(13)
|
||||||
@@ -329,5 +329,5 @@ async def test_removed_device(hass, client, multiple_devices, integration):
|
|||||||
entity_entries = entity_registry.async_entries_for_config_entry(
|
entity_entries = entity_registry.async_entries_for_config_entry(
|
||||||
ent_reg, integration.entry_id
|
ent_reg, integration.entry_id
|
||||||
)
|
)
|
||||||
assert len(entity_entries) == 9
|
assert len(entity_entries) == 15
|
||||||
assert dev_reg.async_get_device({get_device_id(client, old_node)}) is None
|
assert dev_reg.async_get_device({get_device_id(client, old_node)}) is None
|
||||||
|
Reference in New Issue
Block a user