mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-07-24 10:48:11 +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:
@@ -80,7 +80,7 @@ def test_computed_paths(config_eos):
|
||||
def test_config_from_env(monkeypatch, config_eos):
|
||||
"""Test configuration from env."""
|
||||
assert config_eos.server.port == 8503
|
||||
assert config_eos.server.eosdash_port is None
|
||||
assert config_eos.server.eosdash_port == 8504
|
||||
|
||||
monkeypatch.setenv("EOS_SERVER__PORT", "8553")
|
||||
monkeypatch.setenv("EOS_SERVER__EOSDASH_PORT", "8555")
|
||||
|
||||
Reference in New Issue
Block a user