Adds "limits" configuration to Lovelace sensor docs (#18694)

This commit is contained in:
Pedro Lamas 2021-08-03 09:41:09 +01:00 committed by GitHub
parent aca47fa6ad
commit 4ab38ab81c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/).