Use RegistryEntryDisabler (#60436)
This commit is contained in:
parent
75e7104339
commit
5bf67cac66
37 changed files with 106 additions and 90 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue