Improve the description of the state field of Template Lock (#39784)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
nadimz 2025-07-02 14:10:10 +02:00 committed by GitHub
parent 03d643827d
commit b2ed9d709a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1446,7 +1446,7 @@ lock:
type: boolean
default: false
state:
description: Defines a template to set the state of the lock.
description: Defines a template to set the state of the lock. Valid output values from the template are `locked`, `unlocked`, `open`, `locking`, `unlocking`, `opening`, and `jammed`, which are directly mapped to the corresponding states. In addition, `true` and `on` are valid as synonyms to `locked` while `false` and `off` are valid as synonyms to `unlocked`.
required: true
type: template
unlock:
@ -3471,7 +3471,7 @@ vacuum:
"attribute: template":
description: The attribute and corresponding template.
required: true
type: template
type: template
availability_template:
description: Defines a template to get the `available` state of the entity. If the template either fails to render or returns `True`, `"1"`, `"true"`, `"yes"`, `"on"`, `"enable"`, or a non-zero number, the entity will be `available`. If the template returns any other value, the entity will be `unavailable`. If not configured, the entity will always be `available`. Note that the string comparison not case sensitive; `"TrUe"` and `"yEs"` are allowed.
required: false