Open arnos-nga opened 3 years ago
Hi
I'm getting an error on the dashboard when load:
type: custom:button-card entity: {{ (data | fromjson),['entity'] }} template: rooms_child name: {{ name }} icon: {{ icon|default('mdi:puzzle') }} tap_action: action: navigate navigation_path: {{ navigation_path }} label: > [[[ if(entity){ return entity.state; } else { return 'Entity error!'; } ]]]
This error often means there is something wrong with your indentation.
You didn't include the indentations in your example. However, there is a : missing behind navigate
:
navigate
Hi
I'm getting an error on the dashboard when load:
type: custom:button-card entity: {{ (data | fromjson),['entity'] }} template: rooms_child name: {{ name }} icon: {{ icon|default('mdi:puzzle') }} tap_action: action: navigate navigation_path: {{ navigation_path }} label: > [[[ if(entity){ return entity.state; } else { return 'Entity error!'; } ]]]