From 0dba935d164892856d601ceb6594dc0c9b869498 Mon Sep 17 00:00:00 2001 From: Dan Raper Date: Wed, 27 Dec 2023 10:46:13 +0000 Subject: [PATCH] Added HACS actions (#2) * Add HACS workflows * Update manifest.json * Fix action failures --- .github/workflows/main.yml | 20 ++++++++++++++++++++ custom_components/ohme/manifest.json | 7 ++++--- hacs.json | 6 +++--- 3 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7e67dfe --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: Main +on: + schedule: + - cron: '0 1 * * *' + push: + branches: + - dev + - main + pull_request: +jobs: + validate: + name: Validate + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v2" + - uses: "home-assistant/actions/hassfest@master" + - name: HACS Action + uses: "hacs/action@main" + with: + category: "integration" diff --git a/custom_components/ohme/manifest.json b/custom_components/ohme/manifest.json index f1d0276..7c13dda 100644 --- a/custom_components/ohme/manifest.json +++ b/custom_components/ohme/manifest.json @@ -1,13 +1,14 @@ { + "domain": "ohme", + "name": "Ohme", "codeowners": [ "@dan-r" ], "config_flow": true, "dependencies": [], "documentation": "https://github.com/dan-r/HomeAssistant-Ohme", - "domain": "ohme", "iot_class": "cloud_polling", - "name": "Ohme", + "issue_tracker": "https://github.com/dan-r/HomeAssistant-Ohme/issues", "requirements": [], "version": "1.0.0" -} \ No newline at end of file +} diff --git a/hacs.json b/hacs.json index d9194c7..f942087 100644 --- a/hacs.json +++ b/hacs.json @@ -1,5 +1,5 @@ { - "name": "Ohme EV Charger", + "name": "Ohme", "render_readme": true, - "iot_class": "cloud_polling" -} \ No newline at end of file + "homeassistant": "2023.9.0" +}