From 1f4164def837954ef82fa760693a3103099c23c4 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 18 Mar 2023 01:29:12 +0100 Subject: [PATCH] Add state (attribute) translations for Text (#89898) --- homeassistant/components/text/strings.json | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/homeassistant/components/text/strings.json b/homeassistant/components/text/strings.json index 0f5ddf5b331..034f1ab315b 100644 --- a/homeassistant/components/text/strings.json +++ b/homeassistant/components/text/strings.json @@ -4,5 +4,28 @@ "action_type": { "set_value": "Set value for {entity_name}" } + }, + "entity_component": { + "_": { + "name": "[%key:component::text::title%]", + "state_attributes": { + "max": { + "name": "Max length" + }, + "min": { + "name": "Min length" + }, + "mode": { + "name": "Mode", + "state": { + "text": "Text", + "password": "Password" + } + }, + "pattern": { + "name": "Pattern" + } + } + } } }