Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 committed Feb 15, 2022
1 parent b5fe7c4 commit 1851373
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions custom_components/mail_and_packages/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@
from __future__ import annotations

import logging

from typing import Any

from homeassistant.components.diagnostics import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, CONF_RESOURCES
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
from homeassistant.core import HomeAssistant
from homeassistant.helpers.device_registry import DeviceEntry

from .const import (
COORDINATOR,
DOMAIN,
)
from .const import COORDINATOR, DOMAIN

_LOGGER = logging.getLogger(__name__)
REDACT_KEYS = {CONF_PASSWORD, CONF_USERNAME}
Expand Down Expand Up @@ -45,4 +41,3 @@ async def async_get_device_diagnostics(
_LOGGER.debug("Redacted keys: %s", REDACT_KEYS)

return async_redact_data(coordinator.data, REDACT_KEYS)

0 comments on commit 1851373

Please sign in to comment.