mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
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:
parent
1b8c5c5894
commit
6bfd2abbc0
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user