From a24079aa34ec5d7961dedff1c506fae801eb0fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kry=C5=A1tof=20=C4=8Cern=C3=BD?= Date: Thu, 5 Oct 2023 11:34:58 +0200 Subject: [PATCH 1/2] Add GitHub actions --- .github/workflows/hacs.yml | 17 +++++++++++++++++ .github/workflows/hassfest.yml | 14 ++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/hacs.yml create mode 100644 .github/workflows/hassfest.yml diff --git a/.github/workflows/hacs.yml b/.github/workflows/hacs.yml new file mode 100644 index 0000000..8369e39 --- /dev/null +++ b/.github/workflows/hacs.yml @@ -0,0 +1,17 @@ +name: HACS Action + +on: + push: + pull_request: + schedule: + - cron: "0 0 * * *" + +jobs: + hacs: + name: HACS Action + runs-on: "ubuntu-latest" + steps: + - name: HACS Action + uses: "hacs/action@main" + with: + category: "integration" \ No newline at end of file diff --git a/.github/workflows/hassfest.yml b/.github/workflows/hassfest.yml new file mode 100644 index 0000000..afbde1a --- /dev/null +++ b/.github/workflows/hassfest.yml @@ -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@v3" + - uses: "home-assistant/actions/hassfest@master" \ No newline at end of file From 7c9fd6bc325eab951c44c4e091e255ab44707eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kry=C5=A1tof=20=C4=8Cern=C3=BD?= Date: Thu, 5 Oct 2023 12:32:32 +0200 Subject: [PATCH 2/2] Fix json files --- custom_components/openwrt/manifest.json | 8 ++++---- hacs.json | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/custom_components/openwrt/manifest.json b/custom_components/openwrt/manifest.json index d918ff5..03e68ba 100644 --- a/custom_components/openwrt/manifest.json +++ b/custom_components/openwrt/manifest.json @@ -1,13 +1,13 @@ { "domain": "openwrt", "name": "OpenWrt", + "codeowners": ["@kvj"], + "config_flow": true, + "dependencies": [], "documentation": "https://github.com/kvj/hass_openwrt", + "iot_class": "local_polling", "issue_tracker": "https://github.com/kvj/hass_openwrt/issues", - "dependencies": [], - "codeowners": ["@kvj"], "requirements": [], - "iot_class": "local_polling", - "config_flow": true, "version": "0.0.2" } diff --git a/hacs.json b/hacs.json index d9ba268..d8f9d34 100644 --- a/hacs.json +++ b/hacs.json @@ -1,5 +1,4 @@ { "name": "OpenWrt", - "domains": ["sensor"], "render_readme": true } \ No newline at end of file