From 5cb79696d0218b66c391281e3e8c0bf91f74f756 Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Sat, 20 Aug 2022 08:04:17 +0200 Subject: [PATCH] Use data description for Pure Energie integration (#77047) --- homeassistant/components/pure_energie/config_flow.py | 3 ++- homeassistant/components/pure_energie/strings.json | 3 +++ homeassistant/components/pure_energie/translations/en.json | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/pure_energie/config_flow.py b/homeassistant/components/pure_energie/config_flow.py index 2b1e20d645e..9e6c510c8b6 100644 --- a/homeassistant/components/pure_energie/config_flow.py +++ b/homeassistant/components/pure_energie/config_flow.py @@ -11,6 +11,7 @@ from homeassistant.config_entries import ConfigFlow from homeassistant.const import CONF_HOST, CONF_NAME from homeassistant.data_entry_flow import FlowResult from homeassistant.helpers.aiohttp_client import async_get_clientsession +from homeassistant.helpers.selector import TextSelector from .const import DOMAIN @@ -50,7 +51,7 @@ class PureEnergieFlowHandler(ConfigFlow, domain=DOMAIN): step_id="user", data_schema=vol.Schema( { - vol.Required(CONF_HOST): str, + vol.Required(CONF_HOST): TextSelector(), } ), errors=errors or {}, diff --git a/homeassistant/components/pure_energie/strings.json b/homeassistant/components/pure_energie/strings.json index 4f65d2d8be1..a76b4a001e6 100644 --- a/homeassistant/components/pure_energie/strings.json +++ b/homeassistant/components/pure_energie/strings.json @@ -5,6 +5,9 @@ "user": { "data": { "host": "[%key:common::config_flow::data::host%]" + }, + "data_description": { + "host": "The IP address or hostname of your Pure Energie Meter." } }, "zeroconf_confirm": { diff --git a/homeassistant/components/pure_energie/translations/en.json b/homeassistant/components/pure_energie/translations/en.json index 6773cf51478..0c4ebcc6e6e 100644 --- a/homeassistant/components/pure_energie/translations/en.json +++ b/homeassistant/components/pure_energie/translations/en.json @@ -12,6 +12,9 @@ "user": { "data": { "host": "Host" + }, + "data_description": { + "host": "The IP address or hostname of your Pure Energie Meter." } }, "zeroconf_confirm": {