mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-08-31 12:46:38 +00:00
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:
@@ -39,6 +39,9 @@ from akkudoktoreos.server.server import (
|
||||
)
|
||||
from akkudoktoreos.utils.stringutil import str2bool
|
||||
|
||||
# Config is the EOS configuration
|
||||
# Config uses sysv args for initialisation
|
||||
# sysv host and port is set for EOSdash but expected to be set for EOS
|
||||
config_eos = get_config(init=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user