diff --git a/.github/workflows/package_linter.yml b/.github/workflows/package_linter.yml index 6126a95..73e99db 100644 --- a/.github/workflows/package_linter.yml +++ b/.github/workflows/package_linter.yml @@ -1,6 +1,8 @@ name: YunoHost apps package linter on: + # Allow to manually trigger the workflow + workflow_dispatch: push: branches: - main @@ -12,7 +14,17 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install toml - name: 'Clone YunoHost apps package linter' run: | diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml index fb72ba0..5084590 100644 --- a/.github/workflows/updater.yml +++ b/.github/workflows/updater.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: # Run it every day at 6:00 UTC schedule: - - cron: '0 6 * * *' + - cron: '0 6 */7 * *' jobs: updater: runs-on: ubuntu-latest diff --git a/conf/homeassistant_conf_files/configuration.yaml b/conf/homeassistant_conf_files/configuration.yaml index 977927f..6cc3b5a 100644 --- a/conf/homeassistant_conf_files/configuration.yaml +++ b/conf/homeassistant_conf_files/configuration.yaml @@ -6,7 +6,7 @@ homeassistant: unit_system: __UNIT_SYSTEM__ currency: __CURRENCY__ country: __COUNTRY__ - time_zone: __TIME_ZONE__ + time_zone: "__TIME_ZONE__" external_url: "https://__DOMAIN__" auth_providers: - type: command_line diff --git a/manifest.json b/manifest.json index 17a440e..1ca6b33 100644 --- a/manifest.json +++ b/manifest.json @@ -21,7 +21,7 @@ "email": "ewilly@ewilly.fr" }, "requirements": { - "yunohost": ">= 4.3.0" + "yunohost": ">= 11.0.0" }, "multi_instance": false, "services": [ diff --git a/scripts/install b/scripts/install index b6d03b6..5542350 100644 --- a/scripts/install +++ b/scripts/install @@ -116,7 +116,7 @@ chown -R $app: "$data_path" # installation in a virtual environment ynh_script_progression --message="Installing Home Assistant in a virtual environment..." -ynh_exec_fully_quiet myynh_install_homeassistant +myynh_install_homeassistant #================================================= # NGINX CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 326e1e7..83c9c45 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -77,8 +77,8 @@ then ynh_script_progression --message="Upgrading source files..." myynh_install_python --python="$py_required_version" - ynh_exec_fully_quiet myynh_upgrade_venv_directory - ynh_exec_fully_quiet myynh_install_homeassistant + myynh_upgrade_venv_directory + myynh_install_homeassistant fi #=================================================