diff --git a/.github/workflows/hacs-action.yml b/.github/workflows/hacs-action.yml new file mode 100644 index 0000000..d0fea45 --- /dev/null +++ b/.github/workflows/hacs-action.yml @@ -0,0 +1,15 @@ +name: HACS Action + +on: + push: + +jobs: + hacs: + name: HACS Action + runs-on: "ubuntu-latest" + steps: + - name: HACS Action + uses: "hacs/action@main" + with: + category: "integration" + ignore: "brands" diff --git a/.github/workflows/hassfest.yml b/.github/workflows/hassfest.yml new file mode 100644 index 0000000..49b93c2 --- /dev/null +++ b/.github/workflows/hassfest.yml @@ -0,0 +1,14 @@ +name: Validate with hassfest + +on: + push: + +jobs: + validate: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v4" + with: + path: "smarthub" + - name: Validate with hassfest + uses: "home-assistant/actions/hassfest@master" diff --git a/.gitignore b/.gitignore index c18dd8d..ea91ffe 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ __pycache__/ +*swp diff --git a/hacs.json b/hacs.json new file mode 100644 index 0000000..5032582 --- /dev/null +++ b/hacs.json @@ -0,0 +1,7 @@ +{ + "name": "SmartHub Coop Integration", + "content_in_root": true, + "render_readme": true, + "country": ["US"], + "hide_default_branch": false +} diff --git a/manifest.json b/manifest.json index ad4ac37..252979e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,11 +1,13 @@ { "domain": "smarthub", "name": "SmartHub Coop Energy", - "version": "1.0.0", - "documentation": "https://github.com/gagata/ha-smarthub-energy-sensor", - "requirements": ["requests"], - "dependencies": [], "codeowners": ["@gagata"], - "config_flow": true + "config_flow": true, + "dependencies": [], + "documentation": "https://github.com/gagata/ha-smarthub-energy-sensor", + "iot_class": "cloud_polling", + "issue_tracker": "https://github.com/gagata/ha-smarthub-energy-sensor/issues", + "requirements": ["aiohttp"], + "version": "1.0.0" }