From 16ad9476683d972799f5f7318036df9aac431bdd Mon Sep 17 00:00:00 2001 From: rany Date: Wed, 12 Jun 2024 00:54:30 +0300 Subject: [PATCH 1/2] Add hassfest validation This is required to prepare for inclusion in the HACS default repo. Signed-off-by: rany --- .../{validate.yml => validation_hacs.yaml} | 4 ++-- .github/workflows/validation_hassfest.yaml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) rename .github/workflows/{validate.yml => validation_hacs.yaml} (81%) create mode 100644 .github/workflows/validation_hassfest.yaml diff --git a/.github/workflows/validate.yml b/.github/workflows/validation_hacs.yaml similarity index 81% rename from .github/workflows/validate.yml rename to .github/workflows/validation_hacs.yaml index fc1b5f9..d5c8c55 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validation_hacs.yaml @@ -1,4 +1,4 @@ -name: Validate +name: HACS Action on: push: @@ -10,7 +10,7 @@ jobs: validate: runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v2" + - uses: "actions/checkout@v4" - name: HACS validation uses: "hacs/action@main" with: diff --git a/.github/workflows/validation_hassfest.yaml b/.github/workflows/validation_hassfest.yaml new file mode 100644 index 0000000..d203eda --- /dev/null +++ b/.github/workflows/validation_hassfest.yaml @@ -0,0 +1,14 @@ +name: Validate with hassfest + +on: + push: + pull_request: + schedule: + - cron: '0 0 * * *' + +jobs: + validate: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v4" + - uses: "home-assistant/actions/hassfest@master" From 3be4be6f8c7ae4a879f749246e80a15f0a9a8f4a Mon Sep 17 00:00:00 2001 From: rany Date: Wed, 12 Jun 2024 00:57:48 +0300 Subject: [PATCH 2/2] Sort manifest keys in domain, name, then alphabetical order This is required to pass hassfest validation. Signed-off-by: rany --- custom_components/open_meteo_solar_forecast/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/open_meteo_solar_forecast/manifest.json b/custom_components/open_meteo_solar_forecast/manifest.json index 2c0bdb8..270d534 100644 --- a/custom_components/open_meteo_solar_forecast/manifest.json +++ b/custom_components/open_meteo_solar_forecast/manifest.json @@ -4,9 +4,9 @@ "codeowners": ["@rany2"], "config_flow": true, "documentation": "https://github.com/rany2/ha-open-meteo-solar-forecast", - "issue_tracker": "https://github.com/rany2/ha-open-meteo-solar-forecast/issues", "integration_type": "service", "iot_class": "cloud_polling", + "issue_tracker": "https://github.com/rany2/ha-open-meteo-solar-forecast/issues", "requirements": ["open_meteo_solar_forecast==0.1.14"], "version": "0.1.11" }