mirror of
				https://github.com/house-of-abbey/GarminHomeAssistant.git
				synced 2025-10-31 07:48:13 +00:00 
			
		
		
		
	Fixed typo in formatsgtring and error if numeric template didn't return a value
This commit is contained in:
		| @@ -630,9 +630,12 @@ class HomeAssistantApp extends Application.AppBase { | ||||
|                                 (item as HomeAssistantToggleMenuItem).updateToggleState(data[i.toString() + "t"]); | ||||
|                             } | ||||
|                             if (item instanceof HomeAssistantNumericMenuItem) { | ||||
|                                 if (data[i.toString() + "n"] != null) | ||||
|                                 { | ||||
|                                     (item as HomeAssistantNumericMenuItem).updateNumericState(data[i.toString() + "n"].toString()); | ||||
|                                 } | ||||
|                             } | ||||
|                         } | ||||
|                         if (Settings.getMenuCheck() && Settings.getCacheConfig() && !mIsCacheChecked) { | ||||
|                             // We are caching the menu configuration, so let's fetch it and check if its been updated. | ||||
|                             var stats   = System.getSystemStats(); // stats.* values in bytes | ||||
|   | ||||
| @@ -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