File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
rootfs/etc/s6-overlay/s6-rc.d/init-airsonos Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -168,8 +168,8 @@ lack of audio. Note that `latency_rtp` does not delay playback start.
168168
169169# # Tweaking AirSonos
170170
171- AirSonos creates a configuration file called `airsonos.xml` in your Home
172- Assistant configuration directory. This file allows you to tweak each device
171+ AirSonos creates a configuration file called `airsonos.xml` in the add-on
172+ configuration directory. This file allows you to tweak each device
173173separately. Every time it finds a new device, it will be added to that file.
174174
175175> **NOTE**: It is HIGHLY recommended to stop the addon before making changes
Original file line number Diff line number Diff line change 1414hassio_api : true
1515host_network : true
1616map :
17- - config:rw
17+ - addon_config:rw
18+ - homeassistant_config:rw
1819options :
1920 port : 49152
2021 latency_rtp : 1000
Original file line number Diff line number Diff line change 66# ==============================================================================
77declare latency
88
9+ # Migrate add-on data from the Home Assistant config folder,
10+ # to the add-on configuration folder.
11+ if ! bashio::fs.directory_exists '/config/airsonos.xml' \
12+ && bashio::fs.file_exists '/homeassistant/airsonos.xml'; then
13+ mv /homeassistant/airsonos.xml /config/airsonos.xml \
14+ || bashio::exit.nok "Failed to migrate AirSonos configuration"
15+ fi
16+
917# Create a configuration file, if it does not exist yet
1018if ! bashio::fs.file_exists '/config/airsonos.xml'; then
1119 cp /etc/airsonos.xml /config/airsonos.xml
You can’t perform that action at this time.
0 commit comments