mirror of
https://github.com/home-assistant/core.git
synced 2026-09-25 07:51:46 -05:00
Redact the AirVisual API key in debug logging (#182280)
This commit is contained in:
@@ -26,6 +26,7 @@ from homeassistant.helpers import (
|
||||
entity_registry as er,
|
||||
)
|
||||
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||
from homeassistant.helpers.redact import partial_redact
|
||||
|
||||
from .const import (
|
||||
CONF_CITY,
|
||||
@@ -63,7 +64,7 @@ def async_get_cloud_api_update_interval(
|
||||
|
||||
LOGGER.debug(
|
||||
"Leveling API key usage (%s): %s consumers, %s minutes between updates",
|
||||
api_key,
|
||||
partial_redact(api_key),
|
||||
num_consumers,
|
||||
minutes_between_api_calls,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user