Add quotes to the payload_template example. (#14206)

The payload_template example was missing enclosing quotes. Confirmed that this is required. 

`payload_template: {{ states('sun.sun') }}` causes the service call to fail, ("value should be string for dictionary value").

`payload_template: "{{ states('sun.sun') }}"` publishes correctly
This commit is contained in:
tomlut 2020-08-11 03:48:07 +10:00 committed by GitHub
parent 8a48c2f9d3
commit 807e232172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ payload: on
{% raw %}
```yaml
topic: home-assistant/light/1/state
payload_template: {{ states('device_tracker.paulus') }}
payload_template: "{{ states('device_tracker.paulus') }}"
```
{% endraw %}