diff --git a/.github/workflows/hassfest.yaml b/.github/workflows/hassfest.yaml new file mode 100644 index 0000000..9b20ba8 --- /dev/null +++ b/.github/workflows/hassfest.yaml @@ -0,0 +1,26 @@ +name: Validate with hassfest + +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + +permissions: + contents: read + +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +jobs: + hassfest: + runs-on: ubuntu-latest + + steps: + - name: Check out the repository + uses: actions/checkout@v3 + + - name: Test hassfest + uses: home-assistant/actions/hassfest@master diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1838eec..a1f5dd5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,7 @@ repos: - id: check-toml - id: check-yaml - id: end-of-file-fixer + exclude: custom_components/econnect_alarm/manifest.json - id: mixed-line-ending - id: trailing-whitespace diff --git a/custom_components/econnect_alarm/manifest.json b/custom_components/econnect_alarm/manifest.json index 9e96f37..c4c68dd 100644 --- a/custom_components/econnect_alarm/manifest.json +++ b/custom_components/econnect_alarm/manifest.json @@ -1,15 +1,21 @@ { "domain": "econnect_alarm", "name": "E-connect Alarm", - "version": "0.0.5", + "after_dependencies": [], + "codeowners": [ + "@palazzem" + ], "config_flow": true, + "dependencies": [], + "documentation": "https://github.com/palazzem/ha-econnect-alarm", + "integration_type": "device", "iot_class": "cloud_polling", - "documentation": "https://www.home-assistant.io/integrations/econnect_alarm", + "issue_tracker": "https://github.com/palazzem/ha-econnect-alarm/issues", + "loggers": [ + "custom_components.econnect_alarm" + ], "requirements": [ "econnect-python==0.5.1" ], - "dependencies": [], - "codeowners": [ - "@palazzem" - ] -} + "version": "0.0.5" +} \ No newline at end of file