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."""
|
||||
return vol.Schema(
|
||||
{
|
||||
vol.Optional(CONF_ENTITY_ID): selector.EntitySelector(
|
||||
selector.EntitySelectorConfig(multiple=False, read_only=True),
|
||||
),
|
||||
vol.Optional(CONF_ATTRIBUTE): selector.AttributeSelector(
|
||||
selector.AttributeSelectorConfig(
|
||||
entity_id=handler.options[CONF_ENTITY_ID]
|
||||
|
@ -18,6 +18,7 @@
|
||||
},
|
||||
"settings": {
|
||||
"data": {
|
||||
"entity_id": "[%key:component::trend::config::step::user::data::entity_id%]",
|
||||
"attribute": "Attribute of entity that this sensor tracks",
|
||||
"invert": "Invert the result"
|
||||
}
|
||||
@ -28,6 +29,7 @@
|
||||
"step": {
|
||||
"init": {
|
||||
"data": {
|
||||
"entity_id": "[%key:component::trend::config::step::user::data::entity_id%]",
|
||||
"attribute": "[%key:component::trend::config::step::settings::data::attribute%]",
|
||||
"invert": "[%key:component::trend::config::step::settings::data::invert%]",
|
||||
"max_samples": "Maximum number of stored samples",
|
||||
|
Loading…
x
Reference in New Issue
Block a user