fix(docker): patch check_config parse_known_args call
All checks were successful
build / build-and-publish (push) Successful in 3m54s
All checks were successful
build / build-and-publish (push) Successful in 3m54s
- Add sed replacement in Dockerfile to change "args, unknown = parser.parse_known_args(script_args)" to "args, unknown = parser.parse_known_args()" in /usr/src/homeassistant/homeassistant/scripts/check_config.py - Include comment referencing the related Home Assistant PR fix to document the change.
This commit is contained in:
@@ -10,6 +10,9 @@ RUN mkdir -p /usr/local/config/custom_components && \
|
||||
wget -q -O - https://install.hacs.xyz | bash - && \
|
||||
cat /usr/local/config/custom_components/hacs/manifest.json | jq -r .requirements[] | xargs /usr/local/bin/python3 -m pip install --quiet --no-cache-dir --upgrade --constraint /usr/src/homeassistant/homeassistant/package_constraints.txt --find-links https://wheels.home-assistant.io/musllinux/ --prefer-binary
|
||||
|
||||
# NOTE: Fix https://github.com/home-assistant/core/pull/155885
|
||||
RUN sed -i 's/args, unknown = parser.parse_known_args(script_args)/args, unknown = parser.parse_known_args()/g' /usr/src/homeassistant/homeassistant/scripts/check_config.py
|
||||
|
||||
ADD entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENV PYTHONUSERBASE /config/deps
|
||||
|
||||
Reference in New Issue
Block a user