Allow MQTT selects to have a single or no options (#20421)

This commit is contained in:
Erik Montnemery 2021-11-24 20:06:29 +01:00 committed by GitHub
parent e1ea19f9f9
commit 9e78edf16a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,7 @@ optimistic:
type: boolean
default: "`true` if no `state_topic` defined, else `false`."
options:
description: List of options that can be selected.
description: List of options that can be selected. An empty list or a list with a single item is allowed.
required: true
type: list
qos: