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

Hacs readiness #40

Merged
merged 6 commits into from
Nov 24, 2024
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
14 changes: 14 additions & 0 deletions .github/workflows/hassfest.yml
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish

on:
release:
types:
- published

jobs:
release_zip_file:
name: Publish Dimo zip file asset
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout the repository
uses: actions/checkout@v4
# Pack the Dimo dir as a zip and upload to the release
- name: ZIP Dimo Dir
if: ${{ github.event_name == 'release' }}
run: |
cd ${{ github.workspace }}/custom_components/dimo
zip dimo.zip -r ./
- name: Upload zip to release
uses: softprops/action-gh-release@v2
if: ${{ github.event_name == 'release' }}
with:
files: ${{ github.workspace }}/custom_components/dimo/dimo.zip
17 changes: 17 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Validate

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
validate-hacs:
runs-on: "ubuntu-latest"
steps:
- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"
5 changes: 3 additions & 2 deletions custom_components/dimo/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"domain": "dimo",
"name": "DIMO",
"codeowners": [
"@ardevd"
"@ardevd", "@msp1974"
],
"config_flow": true,
"dependencies": [],
"documentation": "https://www.home-assistant.io/integrations/dimo",
"documentation": "https://github.com/ardevd/ha-dimo/blob/main/README.md",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/ardevd/ha-dimo/issues",
"requirements": [
"dimo-python-sdk==0.0.6",
"loguru==0.7.2"
Expand Down
8 changes: 8 additions & 0 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "DIMO Integration for Home Assistant",
"homeassistant": "2024.11",
"render_readme": true,
"zip_release": true,
"filename": "dimo.zip"
}

Loading