mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-10-31 23:48:13 +00:00
Fixed typo in formatsgtring and error if numeric template didn't return a value
This commit is contained in:
@@ -47,7 +47,7 @@ class HomeAssistantNumericFactory extends WatchUi.PickerFactory {
|
||||
if (mStep < 0.01) {
|
||||
mFormatString="%.3f";
|
||||
} else if (mStep < 0.1) {
|
||||
mFormatString="%2f";
|
||||
mFormatString="%.2f";
|
||||
} else if (mStep < 1) {
|
||||
mFormatString="%.1f";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user