From 3404c7f6794b155ee6a572228b96c4fe195d53e2 Mon Sep 17 00:00:00 2001 From: Philip Abbey Date: Wed, 24 Jun 2026 01:12:20 +0100 Subject: [PATCH] Update schema for numeric tap_action and HISTORY Add schema metadata and stricter validation for numeric tap_action: include title & description, disallow additionalProperties on the tap_action and its picker properties to better define the number picker payload. Update HISTORY.md with a 3.14 entry documenting numeric items now supporting tap_action.data and the PIN/menu behavior change, and credit the contributor. --- HISTORY.md | 1 + config.schema.json | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index e844011..6f29d3c 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -59,3 +59,4 @@ | 3.11 |
Better handling of menus larger than the Glance view can handle. As a result the Glance can no longer verify the availability of the JSON menu as fetching it might cause an _"Error: Out Of Memory Error"_. Provide two user supplied HTTP Headers. Bug fix for the numeric picker. | | 3.12 | Amended GPS accuracy values used by the background service. | | 3.13 | Added support for new devices: `d2mach2pro`, `fr170`, `fr170m`, `fr70`. | +| 3.14 | Numeric items now support `tap_action.data` fields so service call options like `transition` are catered for. See the documentation on [Additional Action Data](https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/examples/Numeric.md#additional-action-data). This features has been provided by [@StumblingGamer](https://github.com/StumblingGamer). Now prevent PIN enabled menu items from being enabled on non-touch screen devices. The PIN must be removed for the menu item to render. | \ No newline at end of file diff --git a/config.schema.json b/config.schema.json index 01f701c..9c6f9eb 100644 --- a/config.schema.json +++ b/config.schema.json @@ -251,7 +251,8 @@ "$ref": "#/$defs/content" }, "tap_action": { - "$ref": "#/$defs/tap_action", + "title": "Tap Action", + "description": "Numeric tap action definition to include the number picker.", "properties": { "action": { "$ref": "#/$defs/action" @@ -294,13 +295,15 @@ "max", "step", "data_attribute" - ] + ], + "additionalProperties": false } }, "required": [ "action", "picker" - ] + ], + "additionalProperties": false }, "enabled": { "$ref": "#/$defs/enabled"