Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Allow user to show raw position data in logs #407

Merged
merged 2 commits into from
Apr 24, 2024
Merged

Conversation

coreywillwhat
Copy link
Contributor

Instructions have been added to tell the user how to show raw unredacted GPS data in their logs. This will help with debugging so users can confirm if the issue is on the Audi API side, or the integration side.

In custom_components/audiconnect/audi_connect_account.py user can modify the commented out logger line to add the unredacted data to their logs. Below is the code block to look for:

            # To enable detailed logging of raw vehicle position data for debugging purposes:
            # 1. Remove the '#' from the start of the _LOGGER.debug line below.
            # 2. Save the file.
            # 3. Restart Home Assistant to apply the changes.
            # Note: This will log sensitive data. To stop logging this data:
            # 1. Add the '#' back at the start of the _LOGGER.debug line.
            # 2. Save the file and restart Home Assistant again.
            #_LOGGER.debug("POSITION - UNREDACTED SENSITIVE DATA: Raw vehicle position data: %s", resp)

@Kolbi Kolbi merged commit e16b11e into master Apr 24, 2024
6 checks passed
@Kolbi Kolbi deleted the position_debug branch April 24, 2024 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants