Skip to content

Commit

Permalink
Fix the build -- use er.RegistryEntryDisabler.INTEGRATION . (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
dermotduffy authored Apr 21, 2022
1 parent 4ec0eb3 commit 65e5ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ async def test_disabled_switch_can_be_enabled(
entry = entity_registry.async_get(disabled_entity_id)
assert entry
assert entry.disabled
assert entry.disabled_by == er.DISABLED_INTEGRATION
assert entry.disabled_by == er.RegistryEntryDisabler.INTEGRATION
entity_state = hass.states.get(disabled_entity_id)
assert not entity_state

Expand Down

0 comments on commit 65e5ec0

Please sign in to comment.