We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f1e83 commit 725759dCopy full SHA for 725759d
src/enapter/standalone/config.py
@@ -43,7 +43,11 @@ def from_env(
43
) -> Self:
44
prefix = namespace + "STANDALONE_COMMUNICATION_"
45
blob = env[prefix + "CONFIG"]
46
- return cls.from_blob(blob)
+ config = cls.from_blob(blob)
47
+ override_mqtt_host = env.get(prefix + "OVERRIDE_MQTT_HOST")
48
+ if override_mqtt_host is not None:
49
+ config.mqtt.host = override_mqtt_host
50
+ return config
51
52
@classmethod
53
def from_blob(cls, blob: str) -> Self:
0 commit comments