Skip to content

Commit

Permalink
Add homeassistant-config with different notification data store (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrApplejuice authored Mar 30, 2024
1 parent d592e04 commit ece5638
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .base import *

ENABLE_HOME_ASSISTANT_SUPPORT = True
MESSAGE_STORAGE = "django.contrib.messages.storage.session.SessionStorage"
2 changes: 1 addition & 1 deletion babybuddy/root/etc/cont-init.d/babybuddy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ ! -f "/config/.secretkey" ]; then
| tr -d '\n' > /config/.secretkey
fi
export \
DJANGO_SETTINGS_MODULE="babybuddy.settings.base" \
DJANGO_SETTINGS_MODULE="babybuddy.settings.homeassistant" \
ALLOWED_HOSTS="${ALLOWED_HOSTS:-*}" \
TIME_ZONE="${TZ:-UTC}" \
DEBUG="${DEBUG:-False}" \
Expand Down
2 changes: 1 addition & 1 deletion babybuddy/root/etc/services.d/babybuddy/run
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ options+=(--worker-class=gthread)
cd /app/babybuddy || bashio.exit.nok 'Failed cd, /app/babybuddy does not exist, exiting...'

export \
DJANGO_SETTINGS_MODULE="babybuddy.settings.base" \
DJANGO_SETTINGS_MODULE="babybuddy.settings.homeassistant" \
ALLOWED_HOSTS="${ALLOWED_HOSTS:-*}" \
TIME_ZONE="${TZ:-UTC}" \
DEBUG="${DEBUG:-False}" \
Expand Down

0 comments on commit ece5638

Please sign in to comment.