Make SERVER_HOST optional

This commit is contained in:
2022-06-30 12:44:12 -07:00
parent 87e337a69d
commit 30dcd9cd23
7 changed files with 63 additions and 48 deletions

View File

@ -70,8 +70,8 @@ class AppConfig(ConfigBase):
CONFIG_NODE_SERVER,
"host"
],
default=DEFAULT_SERVER_HOST,
secret=True)
required=False
)
SERVER_PORT = IntConfigEntry(
key_path=[
@ -80,7 +80,8 @@ class AppConfig(ConfigBase):
CONFIG_NODE_PORT
],
range=Range(1, 65534),
default=DEFAULT_SERVER_PORT)
default=DEFAULT_SERVER_PORT
)
SERVER_API_TOKEN = StringConfigEntry(
key_path=[
@ -146,6 +147,7 @@ class AppConfig(ConfigBase):
],
required=False
)
MQTT_PORT = IntConfigEntry(
key_path=[
CONFIG_NODE_ROOT,