diff --git a/homeassistant/components/trend/config_flow.py b/homeassistant/components/trend/config_flow.py index f91e81bf4e8..756b9536d19 100644 --- a/homeassistant/components/trend/config_flow.py +++ b/homeassistant/components/trend/config_flow.py @@ -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] diff --git a/homeassistant/components/trend/strings.json b/homeassistant/components/trend/strings.json index fb70a6e7032..9f11673e4cd 100644 --- a/homeassistant/components/trend/strings.json +++ b/homeassistant/components/trend/strings.json @@ -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",