mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-18 12:28:41 +00:00
Added templates to group items
This commit is contained in:
@ -145,7 +145,15 @@ class HomeAssistantMenuItemFactory {
|
||||
);
|
||||
}
|
||||
|
||||
function group(definition as Lang.Dictionary) as WatchUi.MenuItem {
|
||||
return new HomeAssistantGroupMenuItem(definition, mGroupTypeIcon, mMenuItemOptions);
|
||||
function group(
|
||||
definition as Lang.Dictionary,
|
||||
template as Lang.String or Null
|
||||
) as WatchUi.MenuItem {
|
||||
return new HomeAssistantGroupMenuItem(
|
||||
definition,
|
||||
template,
|
||||
mGroupTypeIcon,
|
||||
mMenuItemOptions
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user