Use data description for Pure Energie integration (#77047)

This commit is contained in:
Klaas Schoute
2022-08-20 08:04:17 +02:00
committed by GitHub
parent 0795d28ed5
commit 5cb79696d0
3 changed files with 8 additions and 1 deletions

View File

@@ -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 {},

View File

@@ -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": {

View File

@@ -12,6 +12,9 @@
"user": {
"data": {
"host": "Host"
},
"data_description": {
"host": "The IP address or hostname of your Pure Energie Meter."
}
},
"zeroconf_confirm": {