mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-08-06 11:58:34 +00:00
Added callback function to TemplateMenuItem
This commit is contained in:
@ -47,6 +47,8 @@ class HomeAssistantTemplateMenuItem extends TemplateMenuItem {
|
||||
TemplateMenuItem.initialize(
|
||||
label,
|
||||
template,
|
||||
// Now this feels very "closely coupled" to the application, but it is the most reliable method instead of using a timer.
|
||||
getApp().method(:updateNextMenuItem),
|
||||
icon,
|
||||
options
|
||||
);
|
||||
|
Reference in New Issue
Block a user