mirror of
https://github.com/home-assistant/android
synced 2024-07-22 10:54:12 +00:00
Fix Wear OS template tile preview server (#3469)
Fix Wear template preview server - This still used an implicit server where it should be using a specific one
This commit is contained in:
parent
6b03613352
commit
1eb6ea61f4
|
@ -141,7 +141,7 @@ class SettingsWearViewModel @Inject constructor(
|
|||
viewModelScope.launch {
|
||||
try {
|
||||
templateTileContentRendered.value =
|
||||
serverManager.integrationRepository().renderTemplate(template, mapOf()).toString()
|
||||
serverManager.integrationRepository(serverId).renderTemplate(template, mapOf()).toString()
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Exception while rendering template", e)
|
||||
// JsonMappingException suggests that template is not a String (= error)
|
||||
|
|
Loading…
Reference in a new issue