Fix missing .name at entity_id in service example (#38515)

for propper filename
This commit is contained in:
Cooper Dale 2020-08-03 18:22:52 +02:00 committed by GitHub
parent 809c2980df
commit 0b0e323632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ snapshot:
example: "camera.living_room_camera"
filename:
description: Template of a Filename. Variable is entity_id.
example: "/tmp/snapshot_{{ entity_id }}"
example: "/tmp/snapshot_{{ entity_id.name }}.jpg"
play_stream:
description: Play camera stream on supported media player.
@ -59,7 +59,7 @@ record:
example: "camera.living_room_camera"
filename:
description: Template of a Filename. Variable is entity_id. Must be mp4.
example: "/tmp/snapshot_{{ entity_id }}.mp4"
example: "/tmp/snapshot_{{ entity_id.name }}.mp4"
duration:
description: (Optional) Target recording length (in seconds).
default: 30