Migrate add-on to new Home Assistant configuration mapping (#284)

This commit is contained in:
Franck Nijhof 2023-11-10 22:36:18 +01:00 committed by GitHub
parent fde1536fb2
commit 31c4ab8561
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ arch:
- amd64
- armv7
map:
- config:rw
- homeassistant_config:rw
- share:rw
schema:
database: "str?"

View file

@ -6,7 +6,7 @@
# ==============================================================================
declare database
database="/config/home-assistant_v2.db"
database="/homeassistant/home-assistant_v2.db"
if bashio::config.has_value 'database'; then
database="$(bashio::config 'database')"
fi

View file

@ -7,7 +7,7 @@
declare -a options
declare database
database="/config/home-assistant_v2.db"
database="/homeassistant/home-assistant_v2.db"
if bashio::config.has_value 'database'; then
database="$(bashio::config 'database')"
fi