mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
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
@ -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…
x
Reference in New Issue
Block a user