mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Links to Esphomelib.com is changed to esphome.io (#72680)
This commit is contained in:
parent
e3d250a623
commit
3899c9e6d3
@ -25,6 +25,7 @@ from homeassistant.data_entry_flow import FlowResult
|
||||
from . import CONF_NOISE_PSK, DOMAIN, DomainData
|
||||
|
||||
ERROR_REQUIRES_ENCRYPTION_KEY = "requires_encryption_key"
|
||||
ESPHOME_URL = "https://esphome.io/"
|
||||
|
||||
|
||||
class EsphomeFlowHandler(ConfigFlow, domain=DOMAIN):
|
||||
@ -55,7 +56,10 @@ class EsphomeFlowHandler(ConfigFlow, domain=DOMAIN):
|
||||
errors["base"] = error
|
||||
|
||||
return self.async_show_form(
|
||||
step_id="user", data_schema=vol.Schema(fields), errors=errors
|
||||
step_id="user",
|
||||
data_schema=vol.Schema(fields),
|
||||
errors=errors,
|
||||
description_placeholders={"esphome_url": ESPHOME_URL},
|
||||
)
|
||||
|
||||
async def async_step_user(
|
||||
|
@ -6,7 +6,7 @@
|
||||
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]"
|
||||
},
|
||||
"error": {
|
||||
"resolve_error": "Can't resolve address of the ESP. If this error persists, please set a static IP address: https://esphomelib.com/esphomeyaml/components/wifi.html#manual-ips",
|
||||
"resolve_error": "Can't resolve address of the ESP. If this error persists, please set a static IP address",
|
||||
"connection_error": "Can't connect to ESP. Please make sure your YAML file contains an 'api:' line.",
|
||||
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]",
|
||||
"invalid_psk": "The transport encryption key is invalid. Please ensure it matches what you have in your configuration"
|
||||
@ -17,7 +17,7 @@
|
||||
"host": "[%key:common::config_flow::data::host%]",
|
||||
"port": "[%key:common::config_flow::data::port%]"
|
||||
},
|
||||
"description": "Please enter connection settings of your [ESPHome](https://esphomelib.com/) node."
|
||||
"description": "Please enter connection settings of your [ESPHome]({esphome_url}) node."
|
||||
},
|
||||
"authenticate": {
|
||||
"data": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user