You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Submitting as an initial draft in order to guage feedback on the style.
In particular the solution to adding the code to the `toggle` menu item,
which has incurred duplication of code as I can't inherit from two
classes.
Copy file name to clipboardexpand all lines: HISTORY.md
+1
Original file line number
Diff line number
Diff line change
@@ -31,3 +31,4 @@
31
31
| 2.16 | Bug fix for lack of phone connection when starting the application. Includes new activity reporting features from [KPWhiver](https://github.com/KPWhiver) covering steps, heart rate, floors climbed and descended, and respiration rate. |
32
32
| 2.17 | Bug fix for reporting activity metrics that are not found on some devices. |
33
33
| 2.18 | Bug fix for reporting activity metrics that might be `null` sometimes. This is unsimulatable situation, so this version is a change based on an informed guess. |
34
+
| 2.19 | A template to evaluate is now optionally allowed on both `group` and `toggle` menu items. The template to evaluate is non-optional on a `template` menu item. |
Copy file name to clipboardexpand all lines: examples/Templates.md
+3
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,9 @@ In order to provide the most functionality possible the content of the menu item
10
10
-`{{` ... `}}` for Expressions to print to the template output
11
11
-`{#` ... `#}` for Comments not included in the template output
12
12
13
+
> [!IMPORTANT]
14
+
> In order to avoid "Template Error" being displayed as the return value, make sure your Jinja2 template returns a `string`, not a number of some variety. _All numbers must be formatted to strings_ so the application does not need to distinguish an `integer` from a `float`.
15
+
13
16
## States
14
17
15
18
In this example we get the battery level of the device and add the percent sign. *Very simple*
0 commit comments