Fix string quoting in yaml of notify.telegram (#5870)

Strings containing a single quote must be enclosed in double quotes to generate valid YAML
This commit is contained in:
Felix Breidenstein 2018-07-24 22:13:22 +02:00 committed by Fabian Affolter
parent e8142b764f
commit 4512ec9496

View File

@ -99,7 +99,7 @@ action:
service: notify.NOTIFIER_NAME service: notify.NOTIFIER_NAME
data: data:
title: '*Send a message*' title: '*Send a message*'
message: 'That's an example that _sends_ a *formatted* message with a custom inline keyboard.' message: "That's an example that _sends_ a *formatted* message with a custom inline keyboard."
data: data:
inline_keyboard: inline_keyboard:
- 'Task 1:/command1, Task 2:/command2' - 'Task 1:/command1, Task 2:/command2'
@ -121,7 +121,7 @@ action:
service: notify.NOTIFIER_NAME service: notify.NOTIFIER_NAME
data: data:
title: Send an images title: Send an images
message: That's an example that sends an image. message: "That's an example that sends an image."
data: data:
photo: photo:
- url: http://192.168.1.28/camera.jpg - url: http://192.168.1.28/camera.jpg
@ -164,7 +164,7 @@ action:
service: notify.NOTIFIER_NAME service: notify.NOTIFIER_NAME
data: data:
title: Send a video title: Send a video
message: That's an example that sends a video. message: "That's an example that sends a video."
data: data:
video: video:
- url: http://192.168.1.28/camera.mp4 - url: http://192.168.1.28/camera.mp4
@ -194,7 +194,7 @@ action:
service: notify.NOTIFIER_NAME service: notify.NOTIFIER_NAME
data: data:
title: Send a document title: Send a document
message: That's an example that sends a document and a custom keyboard. message: "That's an example that sends a document and a custom keyboard."
data: data:
document: document:
file: /tmp/whatever.odf file: /tmp/whatever.odf