From 4ab38ab81c7ca5f7332d5776fa676382c6642517 Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Tue, 3 Aug 2021 09:41:09 +0100 Subject: [PATCH] Adds "limits" configuration to Lovelace sensor docs (#18694) --- source/_lovelace/sensor.markdown | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/_lovelace/sensor.markdown b/source/_lovelace/sensor.markdown index 5708023196e..297ee3925e6 100644 --- a/source/_lovelace/sensor.markdown +++ b/source/_lovelace/sensor.markdown @@ -48,6 +48,21 @@ hours_to_show: description: Hours to show in graph. type: integer default: 24 +limits: + required: false + description: Limits of the graph Y-axis. + type: map + keys: + min: + description: Minimum value of the graph Y-axis. + type: float + required: false + default: "`0` if the entity `unit_of_measurement` is `%`, otherwise minimum value of sample" + max: + description: Maximum value of the graph Y-axis. + type: float + required: false + default: "`100` if the entity `unit_of_measurement` is `%`, otherwise maximum value of sample" theme: required: false description: Override the used theme for this card with any loaded theme. For more information about themes, see the [frontend documentation](/integrations/frontend/).