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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 106 additions and 90 deletions

View file

@ -196,7 +196,7 @@ async def test_disabled_by_default_sensors(
entry = registry.async_get(entity_id)
assert entry
assert entry.disabled
assert entry.disabled_by == er.DISABLED_INTEGRATION
assert entry.disabled_by is er.RegistryEntryDisabler.INTEGRATION
@pytest.mark.parametrize(