Skip to content

Commit

Permalink
Merge pull request #6 from Xerolux/autofix/alert-424-86a45d8d54
Browse files Browse the repository at this point in the history
Fix code scanning alert no. 424: Clear-text logging of sensitive information
  • Loading branch information
Xerolux authored Sep 24, 2024
2 parents 48d5d0c + 2259b47 commit d682ecc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/violet_pool_controller/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ async def async_step_user(self, user_input=None):
raise ValueError("Firmware version not found in API response.")

except aiohttp.ClientError as err:
_LOGGER.error(f"Error connecting to API at {auth_url}: {err}")
sanitized_auth_url = f"{protocol}://{username}:***@{base_ip}/getReadings?ALL"
_LOGGER.error(f"Error connecting to API at {sanitized_auth_url}: {err}")
errors["base"] = "cannot_connect"
except ValueError as err:
_LOGGER.error(f"Invalid response received: {err}")
Expand Down

0 comments on commit d682ecc

Please sign in to comment.