Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
coreywillwhat authored Apr 27, 2024
1 parent b49eeb4 commit 578d52c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions custom_components/audiconnect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
MIN_UPDATE_INTERVAL,
RESOURCES,
COMPONENTS,
REDACT_LOGS,
)

_LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -112,6 +113,12 @@ async def async_setup_entry(hass, config_entry):
_scan_active = config_entry.options.get(CONF_SCAN_ACTIVE, True)
_LOGGER.debug("User option for CONF_SCAN_ACTIVE is %s.", _scan_active)

if REDACT_LOGS:
_LOGGER.debug("Redacting user logs...")
else:
_LOGGER.debug("User logs will not be redacted. Sensitive data may be visible...")


account = config_entry.data.get(CONF_USERNAME)

if account not in hass.data[DOMAIN]:
Expand Down

0 comments on commit 578d52c

Please sign in to comment.