Skip to content

Add raw protocol debug logging#9

Merged
hilman2 merged 2 commits intomainfrom
codex/add-raw-protocol-logging
Apr 10, 2026
Merged

Add raw protocol debug logging#9
hilman2 merged 2 commits intomainfrom
codex/add-raw-protocol-logging

Conversation

@hilman2
Copy link
Copy Markdown
Owner

@hilman2 hilman2 commented Apr 10, 2026

Summary

  • add a dedicated raw protocol debug logger for HTTP and WebSocket traffic
  • capture raw text frames and binary WS payloads before parsing/stripping
  • document how to enable the logger and cover the new behavior with tests

Testing

  • wsl -d Ubuntu -- bash -lc 'source ~/venvs/ha-xtool-s1/bin/activate && cd /mnt/d/Git/ha-xtool-s1 && black --check custom_components/xtool_s1/api.py tests/test_api.py'
  • wsl -d Ubuntu -- bash -lc 'source ~/venvs/ha-xtool-s1/bin/activate && cd /mnt/d/Git/ha-xtool-s1 && ruff check custom_components/xtool_s1/api.py tests/test_api.py'
  • wsl -d Ubuntu -- bash -lc 'source ~/venvs/ha-xtool-s1/bin/activate && cd /mnt/d/Git/ha-xtool-s1 && pytest -q'

@hilman2 hilman2 force-pushed the codex/add-raw-protocol-logging branch from 0bcb950 to 1116a95 Compare April 10, 2026 23:28
@hilman2 hilman2 merged commit 50a0206 into main Apr 10, 2026
4 of 8 checks passed
@hilman2 hilman2 deleted the codex/add-raw-protocol-logging branch April 10, 2026 23:43
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