Add options support to MQTT sensor (#34152)

This commit is contained in:
Jan Bouwhuis 2024-08-22 19:22:17 +02:00 committed by GitHub
parent 8a429d4386
commit d240614f04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,6 +165,10 @@ object_id:
description: Used instead of `name` for automatic generation of `entity_id` description: Used instead of `name` for automatic generation of `entity_id`
required: false required: false
type: string type: string
options:
description: List of allowed sensor state value. An empty list is not allowed. The sensor's `device_class` should be set to `enum`. Cannot be used together with `state_class` or `unit_of_measurement`.
required: false
type: list
payload_available: payload_available:
description: The payload that represents the available state. description: The payload that represents the available state.
required: false required: false