Skip to content

Commit

Permalink
use enum ConfigEntryDisabler
Browse files Browse the repository at this point in the history
  • Loading branch information
mib1185 committed Dec 26, 2021
1 parent 746aa94 commit 0e8e1e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/config/config_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ async def config_entry_update(hass, connection, msg):
async def config_entry_disable(hass, connection, msg):
"""Disable config entry."""
disabled_by = msg["disabled_by"]
if disabled_by is not None:
disabled_by = config_entries.ConfigEntryDisabler(disabled_by)

result = False
try:
Expand Down

0 comments on commit 0e8e1e8

Please sign in to comment.