Add HTTP server settings to the network panel#51981
Open
MindFreeze wants to merge 8 commits into
Open
Conversation
21 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an HTTP server configuration form to the Settings → System → Network panel, backed by new WebSocket endpoints, and includes a small fix to prevent focus loss in multi-value text inputs.
Changes:
- Add a new “HTTP server” card/form in the network config panel for editing HTTP settings and prompting a restart after save.
- Introduce a new
src/data/http.tsdata module to fetch/update HTTP config via WebSocket. - Fix
<ha-input-multi>list rendering keys to avoid destroying inputs on each keystroke.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/translations/en.json |
Adds UI strings for the new HTTP server settings card (labels, helpers, restart prompt). |
src/panels/config/network/ha-config-section-network.ts |
Inserts the new HTTP settings form into the Network section layout. |
src/panels/config/network/ha-config-http-form.ts |
Implements the new HTTP settings card, including load/save and restart prompt UI. |
src/data/http.ts |
Adds WebSocket wrappers (http/config/get, http/config/update) and the HttpConfig type. |
src/components/input/ha-input-multi.ts |
Updates repeat() keying to prevent focus loss while editing multi-value fields. |
piitaya
reviewed
May 11, 2026
Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
21 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed change
Adds a form under Settings > System > Network for configuring the HTTP server (port, SSL paths, CORS origins, trusted proxies, IP banning). Backed by the new
http/configandhttp/config/configureWebSocket commands. After save, the user is prompted to restart Home Assistant.This initial PR only covers the form to change the settings. Will be merged into a feature branch. Handling a good or bad config after a restart of the HTTP server will be done later.
The first commit fixes focus loss in
<ha-input-multi>: the existing${item}-${index}repeat()key destroyed the input element on every keystroke. This wasn't observable before because<ha-form>+text: { multiple: true }is not used anywhere else, andha-aliases-editormasks it withupdate-on-blur.Also had to tweak the margin between the "add" button and the helper text.
Screenshots
Here are all the inputs before I added sections:
Details
Type of change
Additional information
http:YAML keys into UI configuration elements #51807Move HTTP integration configuration to the UI core#170321Migrate http config to ui core#171177Checklist
If user exposed functionality or configuration variables are added/changed:
To help with the load of incoming pull requests: