mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Add read_only entity_id to Trend options flow (#145657)
This commit is contained in:
parent
6fc064fa6a
commit
d49a613c62
@ -34,6 +34,9 @@ async def get_base_options_schema(handler: SchemaCommonFlowHandler) -> vol.Schem
|
|||||||
"""Get base options schema."""
|
"""Get base options schema."""
|
||||||
return vol.Schema(
|
return vol.Schema(
|
||||||
{
|
{
|
||||||
|
vol.Optional(CONF_ENTITY_ID): selector.EntitySelector(
|
||||||
|
selector.EntitySelectorConfig(multiple=False, read_only=True),
|
||||||
|
),
|
||||||
vol.Optional(CONF_ATTRIBUTE): selector.AttributeSelector(
|
vol.Optional(CONF_ATTRIBUTE): selector.AttributeSelector(
|
||||||
selector.AttributeSelectorConfig(
|
selector.AttributeSelectorConfig(
|
||||||
entity_id=handler.options[CONF_ENTITY_ID]
|
entity_id=handler.options[CONF_ENTITY_ID]
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"data": {
|
"data": {
|
||||||
|
"entity_id": "[%key:component::trend::config::step::user::data::entity_id%]",
|
||||||
"attribute": "Attribute of entity that this sensor tracks",
|
"attribute": "Attribute of entity that this sensor tracks",
|
||||||
"invert": "Invert the result"
|
"invert": "Invert the result"
|
||||||
}
|
}
|
||||||
@ -28,6 +29,7 @@
|
|||||||
"step": {
|
"step": {
|
||||||
"init": {
|
"init": {
|
||||||
"data": {
|
"data": {
|
||||||
|
"entity_id": "[%key:component::trend::config::step::user::data::entity_id%]",
|
||||||
"attribute": "[%key:component::trend::config::step::settings::data::attribute%]",
|
"attribute": "[%key:component::trend::config::step::settings::data::attribute%]",
|
||||||
"invert": "[%key:component::trend::config::step::settings::data::invert%]",
|
"invert": "[%key:component::trend::config::step::settings::data::invert%]",
|
||||||
"max_samples": "Maximum number of stored samples",
|
"max_samples": "Maximum number of stored samples",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user