Update dialogflow.markdown (#13951)

Dialogflow returns values with   instead of space between words. replace(' ', '_') doesn't work. Oddly neither does replace(' ', '_'), I assume some characters are getting escaped. Added striptags filter to make it work.
This commit is contained in:
Gareth Cooper 2020-07-12 12:51:52 +01:00 committed by GitHub
parent 1b8c5c5894
commit 6bfd2abbc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,6 +111,6 @@ intent_script:
switch.turn_off
{%- endif -%}
data_template:
entity_id: "switch.light_{{ Room | replace(' ', '_') }}"
entity_id: "switch.light_{{ Room | striptags | replace(' ', '_') }}"
```
{% endraw %}