Skip to content

Commit 9960238

Browse files
committed
Fix run script for Home Assistant 2024.10+
Home Assistant moved to `uv` in 2024.10. And they set `UV_SYSTEM_PYTHON=true` in their Docker image. This causes several errors (see #36) during start up when extra packages are installed (for example, by HACS). We fix this by setting `UV_SYSTEM_PYTHON=false` after creating a venv.
1 parent 52cbfdc commit 9960238

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ fi
101101
bashio::log.info "Activating venv"
102102
# shellcheck source=/dev/null
103103
. "$VENV_PATH/bin/activate"
104+
export UV_SYSTEM_PYTHON=false
104105

105106
bashio::log.info "Setting new \$HOME"
106107
HOME="$( getent passwd "$USER" | cut -d: -f6 )"

0 commit comments

Comments
 (0)