Lovelace: Fix example config for picture elements (#5871)

This commit is contained in:
c727 2018-07-24 15:57:13 +02:00 committed by Paulus Schoutsen
parent 05f4374d7b
commit 30c23a4970

View File

@ -292,8 +292,8 @@ Specify different [CSS filters](https://developer.mozilla.org/en-US/docs/Web/CSS
```yaml ```yaml
state_filter: state_filter:
'on': brightness(110%) saturate(1.2) "on": brightness(110%) saturate(1.2)
'off': brightness(50%) hue-rotate(45deg) "off": brightness(50%) hue-rotate(45deg)
``` ```
## {% linkable_title Example %} ## {% linkable_title Example %}
@ -324,7 +324,7 @@ state_filter:
style: style:
top: 95% top: 95%
left: 60% left: 60%
service: light.turn_off service: homeassistant.turn_off
service_data: service_data:
entity_id: group.all_lights entity_id: group.all_lights
- type: icon - type: icon
@ -333,9 +333,7 @@ state_filter:
navigation_path: /lovelace/0 navigation_path: /lovelace/0
style: style:
top: 10% top: 10%
left: 10% left: 10%
``` ```
## {% linkable_title Images Example %} ## {% linkable_title Images Example %}
@ -350,10 +348,10 @@ state_filter:
tap_action: toggle tap_action: toggle
image: /local/living_room.png image: /local/living_room.png
state_image: state_image:
'off': /local/living_room_off.png "off": /local/living_room_off.png
filter: saturate(.8) filter: saturate(.8)
state_filter: state_filter:
'on': brightness(120%) saturate(1.2) "on": brightness(120%) saturate(1.2)
style: style:
top: 25% top: 25%
left: 75% left: 75%