[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge branch 'master' into sca075
Browse files Browse the repository at this point in the history
  • Loading branch information
sca075 committed Jun 8, 2024
2 parents a635aa4 + a7dfaab commit 826da21
Show file tree
Hide file tree
Showing 10 changed files with 142 additions and 7 deletions.
27 changes: 26 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,31 @@ jobs:
- name: Validate
run: jq --raw-output . appdaemon blacklist critical integration netdaemon plugin python_script removed template theme

jsonschema:
name: JSON schema
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4.1.1

- name: Critical
uses: cardinalby/schema-validator-action@3.1.1
with:
file: "critical"
schema: "tools/jsonschema/critical.schema.json"

- name: Repositories
uses: cardinalby/schema-validator-action@3.1.1
with:
file: "appdaemon|blacklist|integration|netdaemon|plugin|python_script|template|theme"
schema: "tools/jsonschema/repositories.schema.json"

- name: Removed
uses: cardinalby/schema-validator-action@3.1.1
with:
file: "removed"
schema: "tools/jsonschema/removed.schema.json"

sorted:
name: Sorted
runs-on: ubuntu-latest
Expand All @@ -30,4 +55,4 @@ jobs:
uses: actions/checkout@v4.1.1

- name: Check lists
run: python3 scripts/is_sorted.py
run: python3 scripts/is_sorted.py
6 changes: 6 additions & 0 deletions .github/workflows/upload-critical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v4.1.1

- name: Validate with JSON schema
uses: cardinalby/schema-validator-action@3.1.1
with:
file: 'critical'
schema: 'tools/jsonschema/critical.schema.json'

- name: Set up Python
uses: actions/setup-python@v5.0.0
id: python
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/upload-removed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v4.1.1

- name: Validate with JSON schema
uses: cardinalby/schema-validator-action@3.1.1
with:
file: 'removed'
schema: 'tools/jsonschema/removed.schema.json'

- name: Set up Python
uses: actions/setup-python@v5.0.0
id: python
Expand Down
6 changes: 6 additions & 0 deletions blacklist
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
"DavidMStraub/homeassistant-homeconnect",
"DCSBL/ha-homewizard-energy",
"DeebotUniverse/Deebot-4-Home-Assistant",
"dgomes/ha_rrd_recorder",
"digitaljamie/google-theme",
"disforw/inverse",
"djtimca/hagooglewifi",
Expand Down Expand Up @@ -213,18 +214,23 @@
"ntilley905/faastatus",
"OpenXbox/xboxone-home-assistant",
"opravdin/weback-hass",
"oziee/ha-solcast-solar",
"patrickhilker/tedee_hass_integration",
"perara/systemair-save-connect",
"peternijssen/home-assistant-jumbo",
"peternijssen/lovelace-postnl-card",
"Petro31/ad_multizone_media_control",
"Petro31/ad_people_tracker",
"pfunkmallone/HACS-camect-custom_card",
"pfunkmallone/HACS-camect-integration",
"pilotak/homeassistant-mikrotik",
"PiotrMachowski/Home-Assistant-custom-components-Google-Keep",
"pippyn/Home-Assistant-Sensor-Groningen-Afvalwijzer",
"pippyn/Home-Assistant-Sensor-Ophaalkalender",
"ppanagiotis/pymusiccast",
"PTST/O365-HomeAssistant",
"PTST/O365Calendar-HomeAssistant",
"Racailloux/home-assistant-pijuice",
"Raukze/home-assistant-fitx",
"rccoleman/lamarzocco",
"reharmsen/hass-youless-component",
Expand Down
5 changes: 0 additions & 5 deletions integration
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@
"dext0r/yandex_smart_home",
"dgomes/ha_erse",
"dgomes/ha_generic_water_heater",
"dgomes/ha_rrd_recorder",
"dimagoltsman/ha-proof-dashcam-integration",
"dingo35/ha-SmartEVSEv3",
"djansen1987/SAJeSolar",
Expand Down Expand Up @@ -699,13 +698,11 @@
"osk2/panasonic_smart_app",
"osohotwateriot/osoenergy_community",
"oven-lab/tuya_cloud_map_extractor",
"oziee/ha-solcast-solar",
"pail23/stiebel_eltron_isg_component",
"pantherale0/ha-nintendoparentalcontrols",
"parautenbach/hass-shairport-sync",
"Patrick762/hassio-bluetti-bt",
"Patrick762/hassio-streamdeck",
"patrickhilker/tedee_hass_integration",
"patrickribbing/sjofartsverket_viva-component",
"Paul-dH/Home-Assisant-Sensor-OvApi",
"PaulAnnekov/home-assistant-padavan-tracker",
Expand All @@ -722,7 +719,6 @@
"petergridge/openweathermaphistory",
"petretiandrea/home-assistant-tapo-p100",
"Petro31/ha-integration-multizone-controller",
"pfunkmallone/HACS-camect-integration",
"Pigotka/ha-cc-jablotron-cloud",
"piitaya/home-assistant-qubino-wire-pilot",
"pilotak/homeassistant-attributes",
Expand Down Expand Up @@ -764,7 +760,6 @@
"pyalarmdotcom/alarmdotcom",
"Pyhass/Hive-Custom-Component",
"r-renato/ha-climacell-weather",
"Racailloux/home-assistant-pijuice",
"radical-squared/aquatemp",
"Rain1971/V2C_trydant",
"raman325/ha-zoom-automation",
Expand Down
1 change: 0 additions & 1 deletion plugin
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@
"ownbee/bootstrap-grid-card",
"peetereczek/ztm-stop-card",
"petergridge/Irrigation-Card",
"pfunkmallone/HACS-camect-custom_card",
"pgorod/power-todoist-card",
"phischdev/lovelace-mushroom-better-sliders",
"piitaya/lovelace-climate-mode-entity-row",
Expand Down
36 changes: 36 additions & 0 deletions removed
Original file line number Diff line number Diff line change
Expand Up @@ -1581,5 +1581,41 @@
"reason": "Repository is archived",
"removal_type": "remove",
"link": "https://github.com/hacs/default/pull/2495"
},
{
"repository": "pfunkmallone/HACS-camect-integration",
"reason": "Repository is archived",
"removal_type": "remove",
"link": "https://github.com/hacs/default/pull/2536"
},
{
"repository": "patrickhilker/tedee_hass_integration",
"reason": "Repository is archived",
"removal_type": "remove",
"link": "https://github.com/hacs/default/pull/2536"
},
{
"repository": "pfunkmallone/HACS-camect-custom_card",
"reason": "Repository is archived",
"removal_type": "remove",
"link": "https://github.com/hacs/default/pull/2536"
},
{
"repository": "dgomes/ha_rrd_recorder",
"reason": "Repository is archived",
"removal_type": "remove",
"link": "https://github.com/hacs/default/pull/2536"
},
{
"repository": "oziee/ha-solcast-solar",
"reason": "Repository no longer exsist",
"removal_type": "remove",
"link": "https://github.com/hacs/integration/issues/3745"
},
{
"repository": "Racailloux/home-assistant-pijuice",
"reason": "Repository no longer exsist",
"removal_type": "remove",
"link": "https://github.com/hacs/default/pull/2537"
}
]
26 changes: 26 additions & 0 deletions tools/jsonschema/critical.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Schema for critical repositories",
"type": "array",
"items": {
"type": "object",
"properties": {
"repository": {
"type": "string",
"pattern": "^[\\w\\.-]+\/[\\w\\.-]+$"
},
"reason": {
"type": "string"
},
"link": {
"type": "string",
"format": "uri"
}
},
"required": [
"repository",
"reason",
"link"
]
}
}
27 changes: 27 additions & 0 deletions tools/jsonschema/removed.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Schema for removed repositories",
"type": "array",
"items": {
"type": "object",
"properties": {
"link": {
"type": "string"
},
"reason": {
"type": "string"
},
"removal_type": {
"type": "string"
},
"repository": {
"type": "string",
"pattern": "^[\\w\\.-]+\/[\\w\\.-]+$"
}
},
"required": [
"removal_type",
"repository"
]
}
}
9 changes: 9 additions & 0 deletions tools/jsonschema/repositories.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Shema for a repository list",
"type": "array",
"items": {
"type": "string",
"pattern": "^[\\w\\.-]+\/[\\w\\.-]+$"
}
}

0 comments on commit 826da21

Please sign in to comment.