Links to Esphomelib.com is changed to esphome.io (#72680)

This commit is contained in:
R. de Veen 2022-06-30 20:27:31 +02:00 committed by GitHub
parent e3d250a623
commit 3899c9e6d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -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(

View File

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