From 78c0871ae5b175fa99c860132cbfe98ae2eb618d Mon Sep 17 00:00:00 2001 From: scheric <38077357+scheric@users.noreply.github.com> Date: Wed, 14 Oct 2020 21:10:37 +0200 Subject: [PATCH] Use common strings in Tibber config flow (#41837) --- homeassistant/components/tibber/config_flow.py | 2 +- homeassistant/components/tibber/strings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/tibber/config_flow.py b/homeassistant/components/tibber/config_flow.py index 2e09ea22777..6f93a898e2f 100644 --- a/homeassistant/components/tibber/config_flow.py +++ b/homeassistant/components/tibber/config_flow.py @@ -48,7 +48,7 @@ class TibberConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): except asyncio.TimeoutError: errors[CONF_ACCESS_TOKEN] = "timeout" except aiohttp.ClientError: - errors[CONF_ACCESS_TOKEN] = "connection_error" + errors[CONF_ACCESS_TOKEN] = "cannot_connect" except tibber.InvalidLogin: errors[CONF_ACCESS_TOKEN] = "invalid_access_token" diff --git a/homeassistant/components/tibber/strings.json b/homeassistant/components/tibber/strings.json index 25af2c7f30d..bf679705b9f 100644 --- a/homeassistant/components/tibber/strings.json +++ b/homeassistant/components/tibber/strings.json @@ -6,7 +6,7 @@ }, "error": { "timeout": "Timeout connecting to Tibber", - "connection_error": "[%key:common::config_flow::error::cannot_connect%]", + "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", "invalid_access_token": "[%key:common::config_flow::error::invalid_access_token%]" }, "step": {