house-of-abbey / GarminHomeAssistant

Garmin application to provide a dashboard to control your Home Assistant
https://community.home-assistant.io/t/home-assistant-app-for-garmin/637348
MIT License
101 stars 14 forks source link

Update HomeAssistantTemplateMenuItem.mc #158

Closed philipabbey closed 3 months ago

philipabbey commented 3 months ago

Template errors now displayed per item.

philipabbey commented 3 months ago

Need to internationalise the string "Template Error".

philipabbey commented 3 months ago

Causes infinite loop as mNextItemToUpdate does not get incremented until after getState() returns. This all runs in the same thread.

        } else if (Settings.getWebhookId().equals("")) {
            getApp().updateNextMenuItem();

Application behaviour is better without it. The update chain continues and a sensible error message is given to fix it.