7 New devices, mainly Fenix

SDK updated to 7.3.0 in order to get new devices to work in simulation. This means some function prototypes have had to be amended.
This commit is contained in:
Philip Abbey
2024-09-05 21:23:49 +01:00
parent 2e7216b6b2
commit 75ea23dfbd
14 changed files with 261 additions and 182 deletions

View File

@ -73,7 +73,8 @@ class HomeAssistantView extends WatchUi.Menu2 {
}
}
function getItemsToUpdate() as Lang.Array<HomeAssistantToggleMenuItem or HomeAssistantTapMenuItem or HomeAssistantGroupMenuItem> {
// Lang.Array.addAll() fails structural type checking without including "Null" in the return type
function getItemsToUpdate() as Lang.Array<HomeAssistantToggleMenuItem or HomeAssistantTapMenuItem or HomeAssistantGroupMenuItem or Null> {
var fullList = [];
var lmi = mItems as Lang.Array<WatchUi.MenuItem>;