From 7c132757e141ee60f338a152f752b099b5a3e603 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 1 Apr 2024 20:08:47 +0200 Subject: [PATCH 1/4] Update workflow --- .github/workflows/package_linter.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/package_linter.yml b/.github/workflows/package_linter.yml index 625631c..576e4a5 100644 --- a/.github/workflows/package_linter.yml +++ b/.github/workflows/package_linter.yml @@ -4,14 +4,10 @@ on: # Allow to manually trigger the workflow workflow_dispatch: push: - branches: - - master-promotion pull_request: - schedule: - - cron: '0 8 * * *' jobs: - packageLinter: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -24,7 +20,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install toml + pip install toml pyparsing six - name: 'Clone YunoHost apps package linter' run: | From b44d0837b774a6132362f0f75d7b1c906ce33dc5 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 1 Apr 2024 20:15:45 +0200 Subject: [PATCH 2/4] Add more groups to user --- manifest.toml | 2 +- scripts/_common.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index a65ca9c..7c50e6d 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Home Assistant" description.en = "Home automation platform" description.fr = "Plateforme domotique" -version = "2024.3.3~ynh1" +version = "2024.3.3~ynh2" maintainers = ["ewilly"] diff --git a/scripts/_common.sh b/scripts/_common.sh index ac2acdd..f67ff24 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -189,4 +189,11 @@ myynh_set_permissions () { [ ! -e "$(dirname "$log_file")" ] || chown -R $app: "$(dirname "$log_file")" [ ! -e "/etc/sudoers.d/$app" ] || chown -R root: "/etc/sudoers.d/$app" + + # Upgade user groups + user_groups="" + [ $(getent group dialout) ] && user_groups="${user_groups} dialout" + [ $(getent group gpio) ] && user_groups="${user_groups} gpio" + [ $(getent group i2c) ] && user_groups="${user_groups} i2c" + ynh_system_user_create --username="$app" --groups="$user_groups" } From 7bc1c44b62c870ebfd25a703a3a64209f1444b05 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 1 Apr 2024 18:15:36 +0000 Subject: [PATCH 3/4] Auto-update READMEs --- ALL_README.md | 9 +++----- README.md | 46 +++++++++++++++++++-------------------- README_eu.md | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ README_fr.md | 38 ++++++++++++++++----------------- 4 files changed, 104 insertions(+), 48 deletions(-) create mode 100644 README_eu.md diff --git a/ALL_README.md b/ALL_README.md index b412b5e..3eeb161 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -1,8 +1,5 @@ # All available README files by language -[Read the README in English](README.md) - - -* [Lire le README en français](README_fr.md) - - +- [Read the README in English](README.md) +- [Irakurri README euskaraz](README_eu.md) +- [Lire le README en français](README_fr.md) diff --git a/README.md b/README.md index ac72a1b..a376ac3 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@ -# Home Assistant pour YunoHost +# Home Assistant for YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/homeassistant.svg)](https://dash.yunohost.org/appci/app/homeassistant) ![Status du fonctionnement](https://ci-apps.yunohost.org/ci/badges/homeassistant.status.svg) ![Statut demaintenance](https://ci-apps.yunohost.org/ci/badges/homeassistant.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/homeassistant.svg)](https://dash.yunohost.org/appci/app/homeassistant) ![Working status](https://ci-apps.yunohost.org/ci/badges/homeassistant.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/homeassistant.maintain.svg) -[![Installer Home Assistant avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=homeassistant) +[![Install Home Assistant with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=homeassistant) -*[Lire le README dans d'autres langues.](./ALL_README.md)* +*[Read this README in other languages.](./ALL_README.md)* -> *Ce package vous permet d’installer Home Assistant rapidement et simplement sur un serveur YunoHost. -Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.* +> *This package allows you to install Home Assistant quickly and simply on a YunoHost server.* +> *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.* -## Vue d'ensemble +## Overview Home Assistant is an open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. @@ -27,28 +27,28 @@ Home Assistant is an open source home automation that puts local control and pri - Companion Mobile Apps ; - Home Energy Management." -**Version incluse :** 2024.3.3~ynh1 -**Démo:** +**Shipped version:** 2024.3.3~ynh2 -## Captures d'écran +**Demo:** -![Capture d'écran de Home Assistant](./doc/screenshots/screenshot1.png) +## Screenshots -## Documentations et ressources +![Screenshot of Home Assistant](./doc/screenshots/screenshot1.png) -- Site officiel de l’app : -- Documentation officielle de l'admin : -- Dépôt de code officiel de l’app : -- YunoHost Store : -- Signaler un bug : +## Documentation and resources -## Informations pour les développeurs +- Official app website: +- Official admin documentation: +- Upstream app code repository: +- YunoHost Store: +- Report a bug: -Merci de faire vos pull request sur la [branche branch](https://github.com/YunoHost-Apps/homeassistant_ynh/tree/testing), +## Developer info +Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/homeassistant_ynh/tree/testing). -Pour essayer la branche testing, procédez comme suit. +To try the `testing` branch, please proceed like that: ```bash sudo yunohost app install https://github.com/YunoHost-Apps/homeassistant_ynh/tree/testing --debug @@ -56,4 +56,4 @@ or sudo yunohost app upgrade homeassistant -u https://github.com/YunoHost-Apps/homeassistant_ynh/tree/testing --debug ``` -**Plus d'infos sur le packaging d'applications :** +**More info regarding app packaging:** diff --git a/README_eu.md b/README_eu.md new file mode 100644 index 0000000..a8cff23 --- /dev/null +++ b/README_eu.md @@ -0,0 +1,59 @@ + + +# Home Assistant YunoHost-erako + +[![Integrazio maila](https://dash.yunohost.org/integration/homeassistant.svg)](https://dash.yunohost.org/appci/app/homeassistant) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/homeassistant.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/homeassistant.maintain.svg) + +[![Instalatu Home Assistant YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=homeassistant) + +*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)* + +> *Pakete honek Home Assistant YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.* +> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.* + +## Aurreikuspena + +Home Assistant is an open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. + +### Features + +- Works with over 1000 brands ; +- Powerful automations ; +- Extend your system with add-ons ; +- All your smart home data stays local ; +- Companion Mobile Apps ; +- Home Energy Management." + + +**Paketatutako bertsioa:** 2024.3.3~ynh2 + +**Demoa:** + +## Pantaila-argazkiak + +![Home Assistant(r)en pantaila-argazkia](./doc/screenshots/screenshot1.png) + +## Dokumentazioa eta baliabideak + +- Aplikazioaren webgune ofiziala: +- Administratzaileen dokumentazio ofiziala: +- Jatorrizko aplikazioaren kode-gordailua: +- YunoHost Denda: +- Eman errore baten berri: + +## Garatzaileentzako informazioa + +Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/homeassistant_ynh/tree/testing). + +`testing` abarra probatzeko, ondorengoa egin: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/homeassistant_ynh/tree/testing --debug +edo +sudo yunohost app upgrade homeassistant -u https://github.com/YunoHost-Apps/homeassistant_ynh/tree/testing --debug +``` + +**Informazio gehiago aplikazioaren paketatzeari buruz:** diff --git a/README_fr.md b/README_fr.md index c843bbb..f172762 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,20 +1,20 @@ # Home Assistant pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/homeassistant.svg)](https://dash.yunohost.org/appci/app/homeassistant) ![Status du fonctionnement](https://ci-apps.yunohost.org/ci/badges/homeassistant.status.svg) ![Statut demaintenance](https://ci-apps.yunohost.org/ci/badges/homeassistant.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/homeassistant.svg)](https://dash.yunohost.org/appci/app/homeassistant) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/homeassistant.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/homeassistant.maintain.svg) [![Installer Home Assistant avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=homeassistant) *[Lire le README dans d'autres langues.](./ALL_README.md)* -> *Ce package vous permet d’installer Home Assistant rapidement et simplement sur un serveur YunoHost. -Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.* +> *Ce package vous permet d’installer Home Assistant rapidement et simplement sur un serveur YunoHost.* +> *Si vous n’avez pas YunoHost, consultez [ce guide](https://yunohost.org/install) pour savoir comment l’installer et en profiter.* -## Vue d'ensemble +## Vue d’ensemble Home Assistant zst une application domotique open source qui donne la priorité au contrôle local et à la confidentialité. Propulsé par une communauté mondiale de bricoleurs et de passionnés de bricolage. Parfait pour fonctionner sur un Raspberry Pi ou un serveur local. @@ -26,33 +26,33 @@ Home Assistant zst une application domotique open source qui donne la priorité - Toutes les données de votre maison intelligente restent locales ; - Applications mobiles compagnons ; - Gestion de l'énergie domestique. -**Version incluse :** 2024.3.3~ynh1 -**Démo:** +**Version incluse :** 2024.3.3~ynh2 -## Captures d'écran +**Démo :** -![Capture d'écran de Home Assistant](./doc/screenshots/screenshot1.png) +## Captures d’écran + +![Capture d’écran de Home Assistant](./doc/screenshots/screenshot1.png) ## Documentations et ressources - Site officiel de l’app : -- Documentation officielle de l'admin : -- Dépôt de code officiel de l’app : -- YunoHost Store : -- Signaler un bug : +- Documentation officielle de l’admin : +- Dépôt de code officiel de l’app : +- YunoHost Store : +- Signaler un bug : ## Informations pour les développeurs -Merci de faire vos pull request sur la [branche branch](https://github.com/YunoHost-Apps/homeassistant_ynh/tree/testing), +Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/homeassistant_ynh/tree/testing). - -Pour essayer la branche testing, procédez comme suit. +Pour essayer la branche `testing`, procédez comme suit : ```bash sudo yunohost app install https://github.com/YunoHost-Apps/homeassistant_ynh/tree/testing --debug -or +ou sudo yunohost app upgrade homeassistant -u https://github.com/YunoHost-Apps/homeassistant_ynh/tree/testing --debug ``` -**Plus d'infos sur le packaging d'applications :** +**Plus d’infos sur le packaging d’applications :** From a9efc673693a55001325fae02769497054b378d4 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 1 Apr 2024 18:19:43 +0000 Subject: [PATCH 4/4] Auto-update READMEs --- ALL_README.md | 3 +-- README.md | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ALL_README.md b/ALL_README.md index 332d266..3eeb161 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -1,6 +1,5 @@ # All available README files by language - [Read the README in English](README.md) +- [Irakurri README euskaraz](README_eu.md) - [Lire le README en français](README_fr.md) -- [Le o README en galego](README_gl.md) -- [Leggi il “README” in italiano](README_it.md) \ No newline at end of file diff --git a/README.md b/README.md index 68e9d39..a376ac3 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,7 @@ It shall NOT be edited by hand. [![Install Home Assistant with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=homeassistant) - -*[Read this README is other languages.](./ALL_README.md)* +*[Read this README in other languages.](./ALL_README.md)* > *This package allows you to install Home Assistant quickly and simply on a YunoHost server.* > *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.*