Skip to content

Commit

Permalink
Fix security issue of logging of sensitive information.
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed Oct 5, 2024
1 parent c8aaafa commit f62bab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/gismeteo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f62bab4

Please sign in to comment.