An assortment of cosmetic changes

JSON schema fix to remove 'template' as a valid option, punctuation in strings, whitespace, and a new application history entry.
This commit is contained in:
Philip Abbey
2024-11-18 19:39:13 +00:00
parent fb68ce2fba
commit 11ecf88ee2
10 changed files with 75 additions and 78 deletions

View File

@ -30,8 +30,7 @@ class HomeAssistantView extends WatchUi.Menu2 {
definition as Lang.Dictionary,
options as {
:focus as Lang.Number,
:icon as Graphics.BitmapType or WatchUi.Drawable or Lang.Symbol,
:theme as WatchUi.MenuTheme or Null
:icon as Graphics.BitmapType or WatchUi.Drawable or Lang.Symbol
} or Null
) {
if (options == null) {
@ -56,7 +55,7 @@ class HomeAssistantView extends WatchUi.Menu2 {
if (tap_action != null) {
service = tap_action.get("service");
confirm = tap_action.get("confirm"); // Optional
pin = tap_action.get("pin"); // Optional
pin = tap_action.get("pin"); // Optional
data = tap_action.get("data"); // Optional
if (confirm == null) {
confirm = false;