chore: improve error msg on home assistant add-on port config (#1186)

When running as a Home Assistant add-on the ports shall not be changed
as this would break config.yaml that is used by Home Assistant. Prevent
the change and return an error message.

Extra fixes:

* fix: EOS configuration initialisation by cli under EOSdash.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
Bobby Noelte
2026-07-23 15:11:18 +02:00
committed by GitHub
parent 252d4b6123
commit 6093d8d348
15 changed files with 133 additions and 86 deletions

View File

@@ -8,7 +8,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"version": "v0.3.0.dev2607210805856856"
"version": "v0.3.0.dev2607231185985809"
},
"paths": {
"/v1/admin/cache/clear": {
@@ -8573,14 +8573,7 @@
"ServerCommonSettings": {
"properties": {
"host": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"type": "string",
"title": "Host",
"description": "EOS server IP address. Defaults to 127.0.0.1.",
"default": "127.0.0.1",
@@ -8590,14 +8583,7 @@
]
},
"port": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"type": "integer",
"title": "Port",
"description": "EOS server IP port number. Defaults to 8503.",
"default": 8503,
@@ -8632,32 +8618,20 @@
"default": true
},
"eosdash_host": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"type": "string",
"title": "Eosdash Host",
"description": "EOSdash server IP address. Defaults to EOS server IP address.",
"default": "127.0.0.1",
"examples": [
"127.0.0.1",
"localhost"
]
},
"eosdash_port": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"type": "integer",
"title": "Eosdash Port",
"description": "EOSdash server IP port number. Defaults to EOS server IP port number + 1.",
"description": "EOSdash server IP port number. Defaults to 8504.",
"default": 8504,
"examples": [
8504
]