1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Make device entry disabled by an enum (#60239)

This commit is contained in:
Ville Skyttä
2021-11-24 23:32:16 +02:00
committed by GitHub
parent 42389fc81b
commit 9f4de8df18
7 changed files with 52 additions and 39 deletions

View File

@@ -850,7 +850,9 @@ async def test_disable_device_disables_entities(hass, registry):
assert entry2.disabled
assert entry3.disabled
device_registry.async_update_device(device_entry.id, disabled_by=er.DISABLED_USER)
device_registry.async_update_device(
device_entry.id, disabled_by=dr.DeviceEntryDisabler.USER
)
await hass.async_block_till_done()
entry1 = registry.async_get(entry1.entity_id)