From 6bfd2abbc0072ebabac1fea775d1a5187be6045d Mon Sep 17 00:00:00 2001 From: Gareth Cooper Date: Sun, 12 Jul 2020 12:51:52 +0100 Subject: [PATCH] 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. --- source/_integrations/dialogflow.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/dialogflow.markdown b/source/_integrations/dialogflow.markdown index 8b59048ce22..6b8bb00d581 100644 --- a/source/_integrations/dialogflow.markdown +++ b/source/_integrations/dialogflow.markdown @@ -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 %}