mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3290] [MERGED] fix(ha): default integration port to 7860 to match server #5868
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5868
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3290
Author: @kolacheee
Created: 7/5/2026
Status: ✅ Merged
Merged: 7/5/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/ha-integration-default-port📝 Commits (1)
f8c668ffix(ha): default integration port to 7860 to match server📊 Changes
4 files changed (+6 additions, -6 deletions)
View changed files
📝
custom_components/marinara_engine/const.py(+1 -1)📝
custom_components/marinara_engine/strings.json(+1 -1)📝
custom_components/marinara_engine/translations/en.json(+1 -1)📝
docs/integrations/home-assistant.md(+3 -3)📄 Description
Resolves #3291
Why
Marinara Engine's server listens on 7860 everywhere —
packages/server/src/config/runtime-config.ts(DEFAULT_PORT = 7860),.env.example(PORT=7860),start.bat/start.sh/start-termux.sh(export PORT=7860), andscripts/dev.mjs.But the Home Assistant integration's config flow pre-filled port 3000. A user adding the integration against a stock Marinara install submits the form as-is and immediately hits
cannot_connect, because the default never points at a real listener. The fix aligns the integration default with the server's actual port.What changed
custom_components/marinara_engine/const.py—DEFAULT_PORT = 3000→7860. This is the value the config-flow form uses as the port pre-fill (config_flow.py_STEP_USER_SCHEMA), so it's the actual behavior fix.custom_components/marinara_engine/strings.jsonandtranslations/en.json— both now state(default: localhost:7860). Note:en.jsoncarried a stalelocalhost:3000string whilestrings.jsonhad no default text at all, so these two files were already out of sync — this also brings them back into agreement (HA expectstranslations/en.jsonto mirrorstrings.json).docs/integrations/home-assistant.md— updated the threelocalhost:3000references (lines 26, 42, 158) to7860.Coordination
localhost:3000doc references. They're included here because they're part of the same one-line-of-truth fix, but if the audit's doc change lands first, expect a trivial conflict on those three lines only. Theconst.pychange is the unique, primary deliverable and won't collide.CONTRIBUTING.md § Before You Open a Pull Request, an issue/feature request should be opened to track it before this PR is merged.Validation
pnpm checkpasses (typecheck + lint + build, exit 0). (Note: the changed files are Python / JSON / Markdown and are outsidepnpm check's TypeScript+ESLint scope, so it confirms the baseline is green rather than exercising this change directly.)3000references remain undercustom_components/or in the HA doc.Manual verification (not yet done)
cannot_connect.(default: localhost:7860)in the HA UI.docs/integrations/home-assistant.mdreads correctly at the three updated spots.🤖 Generated with Claude Code
Summary by CodeRabbit
localhost:7860.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.