From c4a7092742db841c2a61e27754e5730d3fdbb8d9 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 23 Nov 2018 11:39:13 +0100 Subject: [PATCH 1/3] Add timestamp device class docs --- source/_lovelace/entities.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_lovelace/entities.markdown b/source/_lovelace/entities.markdown index 1e99fbfef613..b5fbc1bf2048 100644 --- a/source/_lovelace/entities.markdown +++ b/source/_lovelace/entities.markdown @@ -57,6 +57,10 @@ secondary_info: required: false description: "Show additional info. Values: `entity-id`, `last-changed`." type: string +format: + required: false + description: "How the state should be formatted. Currently only used for timestamp sensors. Valid values are: "relative", "total", "date", "time", "datetime". + type: string {% endconfiguration %} ## {% linkable_title Special Row Elements %} From f151ace5113334512c285d601a09435c25279b3a Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 23 Nov 2018 11:58:09 +0100 Subject: [PATCH 2/3] Fix yaml --- source/_lovelace/entities.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_lovelace/entities.markdown b/source/_lovelace/entities.markdown index b5fbc1bf2048..7e7695bab9b1 100644 --- a/source/_lovelace/entities.markdown +++ b/source/_lovelace/entities.markdown @@ -59,7 +59,7 @@ secondary_info: type: string format: required: false - description: "How the state should be formatted. Currently only used for timestamp sensors. Valid values are: "relative", "total", "date", "time", "datetime". + description: "How the state should be formatted. Currently only used for timestamp sensors. Valid values are: 'relative', 'total', 'date', 'time', 'datetime'." type: string {% endconfiguration %} From b724725c93779cc902a3be2e878083dd78704fdc Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 24 Nov 2018 13:42:27 +0100 Subject: [PATCH 3/3] :pencil2: Tweak --- source/_lovelace/entities.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_lovelace/entities.markdown b/source/_lovelace/entities.markdown index 7e7695bab9b1..b7837533ced0 100644 --- a/source/_lovelace/entities.markdown +++ b/source/_lovelace/entities.markdown @@ -59,7 +59,7 @@ secondary_info: type: string format: required: false - description: "How the state should be formatted. Currently only used for timestamp sensors. Valid values are: 'relative', 'total', 'date', 'time', 'datetime'." + description: "How the state should be formatted. Currently only used for timestamp sensors. Valid values are: `relative`, `total`, `date`, `time` and `datetime`." type: string {% endconfiguration %}