Tap menu items without a service tag will be ignored.

The JSON schema checker is relied on to highlight this error.
This commit is contained in:
Philip Abbey
2023-11-17 17:51:01 +00:00
parent 6b8892aee8
commit 4b320086ee
4 changed files with 10 additions and 10 deletions

View File

@ -32,11 +32,11 @@ class HomeAssistantMenuItem extends WatchUi.MenuItem {
hidden var mService as Lang.String;
function initialize(
label as Lang.String or Lang.Symbol,
subLabel as Lang.String or Lang.Symbol or Null,
label as Lang.String or Lang.Symbol,
subLabel as Lang.String or Lang.Symbol or Null,
identifier as Lang.Object or Null,
service as Lang.String or Null,
options as {
service as Lang.String or Null,
options as {
:alignment as WatchUi.MenuItem.Alignment,
:icon as Graphics.BitmapType or WatchUi.Drawable or Lang.Symbol
} or Null