Update media_player.universal.markdown (#4052)
* Update media_player.universal.markdown
This state template is invalid...
{% if (is_state('media_player.kodi', 'idle')
causes the following error...
Error rendering template: TemplateSyntaxError: unexpected '}', expected ')'
It seems there is a rogue bracket. when deleted the template reads...
{% if is_state('media_player.kodi', 'idle')
the template now works
* Fix second part
This commit is contained in:
parent
e64d60c990
commit
546471c422
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ media_player:
|
|||
- platform: universal
|
||||
name: Kodi TV
|
||||
state_template: >
|
||||
{% raw %}{% if (is_state('media_player.kodi', 'idle') and (is_state('input_boolean.kodi_tv_state', 'off') %}
|
||||
{% raw %}{% if is_state('media_player.kodi', 'idle') and is_state('input_boolean.kodi_tv_state', 'off') %}
|
||||
off
|
||||
{% else %}
|
||||
{{ states('media_player.kodi') }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue