mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Abri relay credentials and defaults hydrate from environment configuration 🟩
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
39055bafed
commit
62ad53df5a
1 changed files with 6 additions and 1 deletions
|
|
@ -11,4 +11,9 @@ class AbriConfig:
|
|||
|
||||
@classmethod
|
||||
def from_env(cls, env: Mapping[str, str]) -> "AbriConfig":
|
||||
raise NotImplementedError
|
||||
return cls(
|
||||
endpoint_url=env["ABRI_RELAY_URL"],
|
||||
username=env["ABRI_RELAY_USERNAME"],
|
||||
password=env["ABRI_RELAY_PASSWORD"],
|
||||
default_resource=env["ABRI_RELAY_DEFAULT_RESOURCE"],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue