Skip to content

Keep the home HA address out of the cloud page and test fixtures - #77

Merged
ThinkOffApp merged 1 commit into
mainfrom
fix/no-lan-ip-in-source
Oct 7, 2026
Merged

ThinkOffApp merged 1 commit into
mainfrom
fix/no-lan-ip-in-source

Conversation

@ThinkOffApp

Copy link
Copy Markdown
Owner
  • /cloudcar setup steps printed the Mini's home LAN address from source. They now show the configured ha.url (via mercedesme._ha_url(), HTML-escaped).
  • tests/test_preflight.py used a real tailnet address in its fixtures; replaced with 100.64.0.10.

Tests: python3 -m unittest discover -s tests 227 run, OK (1 skipped).

Left in place on purpose: carwatch/mercedesme.py _DEFAULT_URL still holds the home LAN address. It is the fallback deployed devices use when neither ~/.carwatch/ha-url, CARWATCH_HA_URL nor ha.url in config is set, so removing it could silently break the Mercedes cloud page on an installed device. Removing it is safe once each device has ha.url set. The address also remains in git history (private range, not reachable from outside).

Other private-range addresses in the repo are vendor defaults (OBD dongle 192.168.1.254, dashcam 192.168.1.1) or documentation, and stay.

🤖 Generated with Claude Code

…et IP from tests

The /cloudcar setup steps printed the Mini's home LAN address from source.
They now show the configured ha.url (escaped). The preflight test fixtures
used a real tailnet address; they now use 100.64.0.10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
carwatch-dev Ready Ready Preview Oct 7, 2026 3:46pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T15:48:44.803432Z 25ec94e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 25ec94e95d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread carwatch/webchat.py
Comment on lines +2970 to +2971
from carwatch import mercedesme as _mm
return self._send(200, CLOUDCAR_PAGE.replace("__HA_URL__", escape(_mm._ha_url())))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the cloud setup page when the provider fails

If the optional Mercedes provider failed to import during startup, main() deliberately catches that failure so the dashboard remains available and the cloud UI can report no_provider; this unguarded retry instead raises while handling /cloudcar, leaving that setup page without an HTTP response. Obtain the URL without importing the failed provider, or catch the import/config error and serve the page with an unavailable-state placeholder.

Useful? React with 👍 / 👎.

@ThinkOffApp
ThinkOffApp merged commit 700623e into main Oct 7, 2026
3 checks passed
@ThinkOffApp
ThinkOffApp deleted the fix/no-lan-ip-in-source branch October 7, 2026 17:57

This branch was successfully deployed

1 active deployment
Preview — 25ec94e9 Deployed Oct 7, 2026 by vercel[bot]
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