Fixed typo in formatsgtring and error if numeric template didn't return a value

This commit is contained in:
thmichel
2025-10-29 14:41:32 +01:00
parent 6a0ec34cdb
commit b0fa10b2c1
2 changed files with 5 additions and 2 deletions

View File

@@ -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 {