Read ENABLE_HOME_ASSISTANT_SUPPORT from environment

This commit is contained in:
Paul Konstantin Gerke 2023-07-05 00:21:34 +02:00 committed by Christopher Charbonneau Wells
parent c1eb9da7f3
commit 894a4c540a
1 changed files with 3 additions and 1 deletions

View File

@ -361,4 +361,6 @@ BABY_BUDDY = {
# Home assistant specific configuration
ENABLE_HOME_ASSISTANT_SUPPORT = False
ENABLE_HOME_ASSISTANT_SUPPORT = bool(
strtobool(os.environ.get("ENABLE_HOME_ASSISTANT_SUPPORT") or "False")
)