Skip to content

V1.0.8#21

Merged
cayossarian merged 2 commits into
mainfrom
v1.0.8
Mar 30, 2026
Merged

V1.0.8#21
cayossarian merged 2 commits into
mainfrom
v1.0.8

Conversation

@cayossarian
Copy link
Copy Markdown
Member

No description provided.

Shell variables interpolated directly into inline Python source caused
unterminated string literals when the address contained control characters.
Fixes #20.

Changes:
- Use os.environ instead of shell interpolation in all three entrypoint
  scripts (run.sh, entrypoint.sh, run-local.sh)
- Strip control characters from ip route output with tr -d '[:cntrl:]'
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project to release v1.0.8, ensuring version metadata is consistent across packaging, add-on manifests, and lockfiles, while also hardening TLS certificate generation scripts by avoiding shell string interpolation issues.

Changes:

  • Bump version from 1.0.7 → 1.0.8 across Python package metadata, add-on metadata, and lockfile.
  • Harden certificate generation in shell entrypoints by reading ADVERTISE_ADDRESS/CERT_DIR from environment in Python (and stripping control chars from detected IP in the add-on run script).
  • Ignore generated rates cache file in .gitignore.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
uv.lock Updates locked editable package version to 1.0.8.
src/span_panel_simulator/__init__.py Bumps __version__ constant to 1.0.8.
span_panel_simulator/run.sh Sanitizes detected IP and passes cert params via env to Python to avoid string-literal issues.
span_panel_simulator/Dockerfile Updates Home Assistant add-on label version to 1.0.8.
span_panel_simulator/config.yaml Updates add-on config version to 1.0.8.
scripts/run-local.sh Passes cert params via env to Python for local runs.
scripts/entrypoint.sh Exports env vars and reads them in Python for cert generation.
pyproject.toml Updates project version to 1.0.8.
.gitignore Ignores configs/rates/rates_cache.yaml.

@cayossarian cayossarian merged commit 6537288 into main Mar 30, 2026
6 checks passed
@cayossarian cayossarian deleted the v1.0.8 branch March 30, 2026 19:59
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