Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: add hassfest GitHub actions to validate the integration #16

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/hassfest.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
20 changes: 13 additions & 7 deletions custom_components/econnect_alarm/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
Loading