From 7f65c757942e2a049301d8b3b63f817dc1e09309 Mon Sep 17 00:00:00 2001 From: ewilly Date: Thu, 20 Jul 2023 21:45:35 +0200 Subject: [PATCH 1/3] Fix packages Make it compatible to debian bookworm --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 6f43aab..282226d 100644 --- a/manifest.toml +++ b/manifest.toml @@ -97,7 +97,7 @@ ram.runtime = "2G" main.default = 8123 [resources.apt] - packages = "mariadb-server python3, python3-dev, python3-venv, python3-pip, libffi-dev, libssl-dev, libjpeg-dev, zlib1g-dev, autoconf, build-essential, libopenjp2-7, libtiff5, libturbojpeg0, libmariadb-dev, libmariadb-dev-compat, rustc, tk-dev, libncurses5-dev, libncursesw5-dev, libreadline6-dev, libdb5.3-dev, libgdbm-dev, libsqlite3-dev, libbz2-dev, libexpat1-dev, liblzma-dev, wget, tar, libnss3-dev, libreadline-dev, ffmpeg" + packages = "mariadb-server, python3-dev, python3-venv, python3-pip, libffi-dev, autoconf, build-essential, libopenjp2-7-dev, libtiff-dev, libturbojpeg0-dev, libmariadb-dev-compat, rustc, tk-dev, libreadline-dev, libdb5.3-dev, libgdbm-dev, libsqlite3-dev, libbz2-dev, libexpat1-dev, liblzma-dev, wget, tar, libnss3-dev, ffmpeg" [resources.database] type = "mysql" From 6526d7fe9399971e17b4c2f064cd07839f9d57c3 Mon Sep 17 00:00:00 2001 From: ewilly Date: Fri, 21 Jul 2023 07:14:34 +0200 Subject: [PATCH 2/3] Hide pip update warning --- scripts/_common.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 409c1af..17353ab 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -127,19 +127,19 @@ myynh_install_homeassistant () { ynh_exec_as $app "$install_dir/bin/python3" -m ensurepip # install last version of pip - ynh_exec_as $app "$install_dir/bin/pip3" --cache-dir "$data_dir/.cache" install --upgrade "$pip_required" + ynh_exec_warn_less ynh_exec_as $app "$install_dir/bin/pip3" --cache-dir "$data_dir/.cache" install --upgrade "$pip_required" # install last version of wheel - ynh_exec_as $app "$install_dir/bin/pip3" --cache-dir "$data_dir/.cache" install --upgrade wheel + ynh_exec_warn_less ynh_exec_as $app "$install_dir/bin/pip3" --cache-dir "$data_dir/.cache" install --upgrade wheel # install last version of setuptools - ynh_exec_as $app "$install_dir/bin/pip3" --cache-dir "$data_dir/.cache" install --upgrade setuptools + ynh_exec_warn_less ynh_exec_as $app "$install_dir/bin/pip3" --cache-dir "$data_dir/.cache" install --upgrade setuptools # install last version of mysqlclient - ynh_exec_as $app "$install_dir/bin/pip3" --cache-dir "$data_dir/.cache" install --upgrade mysqlclient + ynh_exec_warn_less ynh_exec_as $app "$install_dir/bin/pip3" --cache-dir "$data_dir/.cache" install --upgrade mysqlclient # install Home Assistant - ynh_exec_as $app "$install_dir/bin/pip3" --cache-dir "$data_dir/.cache" install --upgrade "$app==$app_version" + ynh_exec_warn_less ynh_exec_as $app "$install_dir/bin/pip3" --cache-dir "$data_dir/.cache" install --upgrade "$app==$app_version" ) } From 44cb2874c6aa62033f5664ee2fc0628c4b0070b7 Mon Sep 17 00:00:00 2001 From: ewilly Date: Fri, 21 Jul 2023 10:32:37 +0200 Subject: [PATCH 3/3] Fix warning about type --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 282226d..8664dbd 100644 --- a/manifest.toml +++ b/manifest.toml @@ -58,7 +58,7 @@ ram.runtime = "2G" [install.unit_system] ask.en = "metric for Metric, us_customary for US Customary. This also sets temperature_unit, Celsius for Metric and Fahrenheit for US Customary." - type = "string" + type = "select" choices = ["metric", "us_customary"] default = "metric"