Skip to content

Commit 413f1f2

Browse files
Moved schema.json to fix warning due to location of the file (#682)
* Updated schema.json to be within the custom_components\battery_notes folder so that it can be referenced in a default HACS install * Move Schema --------- Co-authored-by: Andrew Jackson <[email protected]>
1 parent 6794b3c commit 413f1f2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/json_validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919
- name: Validate JSON
2020
uses: docker://orrosenblatt/validate-json-action:latest
2121
env:
22-
INPUT_SCHEMA: ./schema.json
22+
INPUT_SCHEMA: custom_components/battery_notes/schema.json
2323
INPUT_JSONS: custom_components/battery_notes/data/library.json

.github/workflows/new_device.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: Validate JSON
8383
uses: docker://orrosenblatt/validate-json-action:latest
8484
env:
85-
INPUT_SCHEMA: ./schema.json
85+
INPUT_SCHEMA: custom_components/battery_notes/schema.json
8686
INPUT_JSONS: custom_components/battery_notes/data/library.json
8787

8888
- name: Create pull request

custom_components/battery_notes/data/library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "../../../schema.json",
2+
"$schema": "../schema.json",
33
"version": 1,
44
"devices": [
55
{

0 commit comments

Comments
 (0)