From 00d9ed3df6c081d989c9ae8394e35b30bae7ccc8 Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Mon, 11 Dec 2023 11:21:14 +0000 Subject: [PATCH 1/2] Update json_validate.yml Conditionally trigger action --- .github/workflows/json_validate.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/json_validate.yml b/.github/workflows/json_validate.yml index 136014d07..1b8fa1f33 100644 --- a/.github/workflows/json_validate.yml +++ b/.github/workflows/json_validate.yml @@ -1,6 +1,14 @@ name: Validate JSONs -on: [push, pull_request] +on: + push: + paths: + - 'custom_components/battery_notes/data/**' + - '.github/workflows/**' + pull_request: + paths: + - 'custom_components/battery_notes/data/**' + - '.github/workflows/**' jobs: verify-json-validation: From 25b25ddd767e2bb213a11519abac31cb77c8ab8d Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Mon, 11 Dec 2023 13:24:41 +0000 Subject: [PATCH 2/2] Add Hive Heating thermostat remote control (SLT3C) --- custom_components/battery_notes/data/library.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/custom_components/battery_notes/data/library.json b/custom_components/battery_notes/data/library.json index c83173d2f..4cadbdcfc 100644 --- a/custom_components/battery_notes/data/library.json +++ b/custom_components/battery_notes/data/library.json @@ -29,6 +29,12 @@ "model": "Smart carbon monoxide sensor (HS1CA-E)", "battery_type": "CR123A" }, + { + "manufacturer": "Hive", + "model": "Heating thermostat remote control (SLT3C)", + "battery_type": "AA", + "battery_quantity": 4 + }, { "manufacturer": "OSRAM", "model": "Smart+ switch mini (AC0251100NJ/AC0251600NJ/AC0251700NJ)",