mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-20 05:04:44 +01:00
fixes #926
This commit is contained in:
@@ -390,7 +390,7 @@ class LuiPagesGen(object):
|
|||||||
# Overwrite for value
|
# Overwrite for value
|
||||||
ovalue = item.value
|
ovalue = item.value
|
||||||
if ovalue is not None:
|
if ovalue is not None:
|
||||||
splitted_string = value.rpartition('}')
|
splitted_string = ovalue.rpartition('}')
|
||||||
template_string = f"{splitted_string[0]}{splitted_string[1]}"
|
template_string = f"{splitted_string[0]}{splitted_string[1]}"
|
||||||
templates_result = apis.ha_api.render_template(template_string)
|
templates_result = apis.ha_api.render_template(template_string)
|
||||||
value = f"{templates_result}{splitted_string[2]}"
|
value = f"{templates_result}{splitted_string[2]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user