mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 11:16:54 +00:00
Refactor SQL with ManualTriggerEntity (#27941)
This commit is contained in:
parent
917a8bb914
commit
859fb42cb8
@ -73,7 +73,7 @@ sql:
|
|||||||
name:
|
name:
|
||||||
description: The name of the sensor.
|
description: The name of the sensor.
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: template
|
||||||
query:
|
query:
|
||||||
description: An SQL QUERY string, should return 1 result at most.
|
description: An SQL QUERY string, should return 1 result at most.
|
||||||
required: true
|
required: true
|
||||||
@ -102,6 +102,18 @@ sql:
|
|||||||
description: "Provide [state class](https://developers.home-assistant.io/docs/core/entity/sensor/#available-state-classes) for this sensor."
|
description: "Provide [state class](https://developers.home-assistant.io/docs/core/entity/sensor/#available-state-classes) for this sensor."
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
icon:
|
||||||
|
description: "Defines a template for the icon of the entity."
|
||||||
|
required: false
|
||||||
|
type: template
|
||||||
|
picture:
|
||||||
|
description: "Defines a template for the entity picture of the entity."
|
||||||
|
required: false
|
||||||
|
type: template
|
||||||
|
availability:
|
||||||
|
description: "Defines a template if the entity state is available or not."
|
||||||
|
required: false
|
||||||
|
type: template
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## Information
|
## Information
|
||||||
|
Loading…
x
Reference in New Issue
Block a user