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

Use RegistryEntryDisabler (#60436)

This commit is contained in:
Ville Skyttä
2021-12-15 23:25:40 +02:00
committed by GitHub
parent 75e7104339
commit 5bf67cac66
37 changed files with 106 additions and 90 deletions

View File

@@ -351,7 +351,7 @@ async def test_sensor_disabled(hass):
assert entry
assert entry.unique_id == "aa:bb:cc:dd:ee:ff-signal"
assert entry.disabled
assert entry.disabled_by == er.DISABLED_INTEGRATION
assert entry.disabled_by is er.RegistryEntryDisabler.INTEGRATION
# Test enabling entity
updated_entry = registry.async_update_entity(