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:
jimbob1001 2017-11-27 16:49:19 +00:00 committed by Fabian Affolter
parent e64d60c990
commit 546471c422

View File

@ -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') }}