Fix bugs in readme

This commit is contained in:
Thomas Lovén 2019-09-05 12:59:25 +02:00
parent f710d10653
commit 400b14b6ab

View File

@ -9,7 +9,7 @@ See [my floorplan card](https://github.com/thomasloven/hass-config/blob/master/l
# Installation instructions # Installation instructions
- Copy the contenst of `custom_components/lovelace_gen/` to `<your config dir>/custom_components/lovelace_gen/`. - Copy the contents of `custom_components/lovelace_gen/` to `<your config dir>/custom_components/lovelace_gen/`.
- Add the following to your `configuration.yaml`: - Add the following to your `configuration.yaml`:
```yaml ```yaml
@ -50,7 +50,7 @@ This can be used e.g. to
- Set and use variables - Set and use variables
```yaml ```yaml
{% set my_lamp = light.bed_light %} {% set my_lamp = "light.bed_light" %}
type: entities type: entities
entities: entities:
@ -88,9 +88,9 @@ entities:
type: horizontal-stack type: horizontal-stack
cards: cards:
{{ button(light.bed_light) }} {{ button("light.bed_light") }}
{{ button(light.ceiling_lights) }} {{ button("light.ceiling_lights") }}
{{ button(light.kitchen_lights) }} {{ button("light.kitchen_lights") }}
``` ```
Please note that for this to work, the indentation of the code in the macro block *must* be equal to what it should be where it's called. Please note that for this to work, the indentation of the code in the macro block *must* be equal to what it should be where it's called.