diff --git a/homeassistant/components/agent_dvr/config_flow.py b/homeassistant/components/agent_dvr/config_flow.py index cc1d6355f3f..9448b8d3123 100644 --- a/homeassistant/components/agent_dvr/config_flow.py +++ b/homeassistant/components/agent_dvr/config_flow.py @@ -62,7 +62,7 @@ class AgentFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): return await self._create_entry(agent_client.name) - errors["base"] = "device_unavailable" + errors["base"] = "cannot_connect" data = { vol.Required(CONF_HOST): str, diff --git a/homeassistant/components/agent_dvr/strings.json b/homeassistant/components/agent_dvr/strings.json index 476d9956222..eb5d8a51763 100644 --- a/homeassistant/components/agent_dvr/strings.json +++ b/homeassistant/components/agent_dvr/strings.json @@ -15,7 +15,7 @@ }, "error": { "already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]", - "device_unavailable": "Device is not available" + "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]" } } } diff --git a/tests/components/agent_dvr/test_config_flow.py b/tests/components/agent_dvr/test_config_flow.py index 064034a4a69..3e11aae054a 100644 --- a/tests/components/agent_dvr/test_config_flow.py +++ b/tests/components/agent_dvr/test_config_flow.py @@ -49,7 +49,7 @@ async def test_connection_error(hass: HomeAssistant, aioclient_mock) -> None: data={CONF_HOST: "example.local", CONF_PORT: 8090}, ) - assert result["errors"] == {"base": "device_unavailable"} + assert result["errors"] == {"base": "cannot_connect"} assert result["step_id"] == "user" assert result["type"] == data_entry_flow.RESULT_TYPE_FORM