From 0f1cdee7b0f4706784da79a88c35c1626bc75dbf Mon Sep 17 00:00:00 2001 From: randellhodges Date: Mon, 17 Sep 2018 14:16:40 -0500 Subject: [PATCH] Added aspect_ratio documentation (#6301) --- source/_lovelace/picture-entity.markdown | 4 ++++ source/_lovelace/picture-glance.markdown | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/source/_lovelace/picture-entity.markdown b/source/_lovelace/picture-entity.markdown index 39ad6002f19..de390f82299 100644 --- a/source/_lovelace/picture-entity.markdown +++ b/source/_lovelace/picture-entity.markdown @@ -38,6 +38,10 @@ state_image: required: false description: "Map entity states to images (`state: image URL`, check the example below)." type: object +aspect_ratio: + required: false + description: "Forces the height of the image to be a ratio of the width. You may enter a value such as: `16x9`, `16:9`, `1.78`." + type: string name: required: false description: Overwrite entity name. diff --git a/source/_lovelace/picture-glance.markdown b/source/_lovelace/picture-glance.markdown index 62a6c258c82..e4f4162cbf6 100644 --- a/source/_lovelace/picture-glance.markdown +++ b/source/_lovelace/picture-glance.markdown @@ -51,6 +51,10 @@ state_image: type: string required: false description: "`state: image-url`, check the example below." +aspect_ratio: + required: false + description: "Forces the height of the image to be a ratio of the width. You may enter a value such as: `16x9`, `16:9`, `1.78`." + type: string entity: required: false description: Entity to use for `state_image`.