Skip to content

Commit e8afed9

Browse files
committed
chore: add HACS default prerequisites (CI validation, issue_tracker, brand icon)
Groundwork for submitting to hacs/default: - .github/workflows/validate.yml running hassfest + hacs/action validation on push/PR/schedule, matching the standard custom-components/blueprint pattern required for HACS default submission. - manifest.json: added the required "issue_tracker" field. - custom_components/splitwise/brand/icon.txt: local brand icon fallback (mdi:cash, matching the sensor's existing icon) using HA's local brand directory support, so a custom-designed PNG can be swapped in later without needing a home-assistant/brands PR first.
1 parent bcf0f39 commit e8afed9

4 files changed

Lines changed: 41 additions & 2 deletions

File tree

.github/workflows/validate.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Validate
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- main
13+
14+
permissions: {}
15+
16+
jobs:
17+
hassfest: # https://developers.home-assistant.io/blog/2020/04/16/hassfest
18+
name: Hassfest validation
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout the repository
22+
uses: actions/checkout@v4
23+
24+
- name: Run hassfest validation
25+
uses: home-assistant/actions/hassfest@master
26+
27+
hacs: # https://github.com/hacs/action
28+
name: HACS validation
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout the repository
32+
uses: actions/checkout@v4
33+
34+
- name: Run HACS validation
35+
uses: hacs/action@main
36+
with:
37+
category: integration
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mdi:cash

custom_components/splitwise/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
"domain": "splitwise",
33
"name": "Splitwise",
44
"documentation": "https://github.com/sriramsv/custom_component_splitwise",
5+
"issue_tracker": "https://github.com/sriramsv/custom_component_splitwise/issues",
56
"dependencies": ["application_credentials"],
67
"codeowners": ["sriramsv"],
78
"requirements": ["splitwise==3.0.0"],
89
"iot_class": "cloud_polling",
910
"config_flow": true,
10-
"version": "0.2.6"
11+
"version": "0.2.7"
1112
}

hacs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "Splitwise Sensor",
33
"domains": ["sensor"],
44
"country": ["US"],
5-
"version": "0.2.6",
5+
"version": "0.2.7",
66
"render_readme": true
77
}

0 commit comments

Comments
 (0)