Skip to content

fix: redact debug logs, retry a stalled setup, correct two sensor classes - #257

Merged
jamesarich merged 1 commit into
mainfrom
fix/logs-retry-sensors
Nov 10, 2026
Merged

jamesarich merged 1 commit into
mainfrom
fix/logs-retry-sensors

Conversation

@jamesarich

Copy link
Copy Markdown
Contributor

Summary

Three findings from the pre-0.7.0 review:

  • Debug logs printed the whole config exchange, private key, Wi-Fi and MQTT passwords and channel PSKs included, and the README and bug template ask users to attach startup debug logs. Logged protobufs now go through aiomeshtastic.redact.without_secrets, which drops every field the schema tags sensitive and admin payloads.
  • A radio that stopped answering after connect (the node DB read timing out) failed setup with SETUP_ERROR until a manual reload. It now raises ConfigEntryNotReady, so HA retries, as it already does for a failed connect.
  • windDirection was a wind speed sensor with a degree unit; it is now wind_direction with measurement_angle. The host userString sensor no longer claims a numeric state class.

Test plan

test_log_redaction.py, a mid-setup retry test and a wind direction test, each failing against main. ruff, mypy and pytest pass locally on Python 3.14.

Checklist

  • Gates pass (ruff, pytest)
  • User-facing behavior is documented in the README (no change)
  • CLA signed (the CLA assistant check passes)

…sses

Logged protobufs now leave out the fields the schema marks sensitive and admin
payloads, since users attach startup debug logs to bug reports. A radio that
stops answering mid-setup now retries like a failed connect, instead of
failing until a manual reload. Wind direction is a wind_direction angle, not a
wind speed, and the host user string has no numeric state class.
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@jamesarich
jamesarich added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit cfb9c95 Nov 10, 2026
5 of 6 checks passed
@jamesarich
jamesarich deleted the fix/logs-retry-sensors branch November 10, 2026 03:23
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.

1 participant