From 258fb3e1173deff9f7d463fd58f8ba70b5b212d3 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 15 Sep 2026 16:57:21 +0200 Subject: [PATCH] Redact the AirVisual API key in debug logging (#182280) --- homeassistant/components/airvisual/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/airvisual/__init__.py b/homeassistant/components/airvisual/__init__.py index 23e219c4c457..456f7b188849 100644 --- a/homeassistant/components/airvisual/__init__.py +++ b/homeassistant/components/airvisual/__init__.py @@ -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, )