Add enable_millisecond to duration selector (#34043)

This commit is contained in:
karwosts 2024-07-31 07:12:45 -07:00 committed by GitHub
parent bb4d996be7
commit 74030720a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -616,6 +616,11 @@ enable_day:
type: boolean type: boolean
default: false default: false
required: false required: false
enable_millisecond:
description: When `true`, the duration selector will allow selecting milliseconds.
type: boolean
default: false
required: false
{% endconfiguration %} {% endconfiguration %}
The output of this selector is a mapping of the time values the user selected. The output of this selector is a mapping of the time values the user selected.
@ -626,6 +631,7 @@ days: 1 # Only when enable_day was set to true
hours: 12 hours: 12
minutes: 30 minutes: 30
seconds: 15 seconds: 15
milliseconds: 500 # Only when enable_millisecond was set to true
``` ```
## Entity selector ## Entity selector
@ -1528,4 +1534,4 @@ The output of this selector is a list of triggers. For example:
- platform: numeric_state - platform: numeric_state
entity_id: "sensor.outside_temperature" entity_id: "sensor.outside_temperature"
below: 20 below: 20
``` ```