From f62bab4c6815e4a44aaf6f7195880a8f075c0c3b Mon Sep 17 00:00:00 2001 From: Andrey Khrolenok Date: Sat, 5 Oct 2024 23:43:39 +0300 Subject: [PATCH] Fix security issue of logging of sensitive information. --- custom_components/gismeteo/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/gismeteo/api.py b/custom_components/gismeteo/api.py index a1b1768..b7932e3 100644 --- a/custom_components/gismeteo/api.py +++ b/custom_components/gismeteo/api.py @@ -142,12 +142,12 @@ def __init__( # noqa: PLR0913 self._attributes = {} if location_key is not None: - _LOGGER.debug("Place location ID: %s", location_key) + _LOGGER.debug("Place location ID used") self._attributes = { ATTR_ID: location_key, } elif self._valid_coordinates(latitude, longitude): - _LOGGER.debug("Place coordinates: %s, %s", latitude, longitude) + _LOGGER.debug("Place coordinates used") self._attributes = { ATTR_LATITUDE: latitude, ATTR_LONGITUDE: longitude,