From f256d0a4ead73529b5b61a00afd2c40be5a54841 Mon Sep 17 00:00:00 2001 From: SNoof85 Date: Tue, 6 Oct 2020 19:54:20 +0200 Subject: [PATCH] Use reference strings in upnp (#41327) * Update strings.json * Update strings.json * Update config_flow.py * replace service by device Co-authored-by: scheric <38077357+scheric@users.noreply.github.com> Co-authored-by: scheric <38077357+scheric@users.noreply.github.com> --- homeassistant/components/upnp/config_flow.py | 2 +- homeassistant/components/upnp/strings.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/upnp/config_flow.py b/homeassistant/components/upnp/config_flow.py index e7c16ef0df9..72efc4ffd55 100644 --- a/homeassistant/components/upnp/config_flow.py +++ b/homeassistant/components/upnp/config_flow.py @@ -54,7 +54,7 @@ class UpnpFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): if discovery[DISCOVERY_USN] == user_input["usn"] ] if not matching_discoveries: - return self.async_abort(reason="no_devices_discovered") + return self.async_abort(reason="no_devices_found") discovery = matching_discoveries[0] await self.async_set_unique_id( diff --git a/homeassistant/components/upnp/strings.json b/homeassistant/components/upnp/strings.json index 99e58698f2e..97e91c490e3 100644 --- a/homeassistant/components/upnp/strings.json +++ b/homeassistant/components/upnp/strings.json @@ -15,9 +15,8 @@ } }, "abort": { - "already_configured": "UPnP/IGD is already configured", - "no_devices_discovered": "No UPnP/IGDs discovered", - "no_devices_found": "No UPnP/IGD devices found on the network.", + "already_configured": "[%key:common::config_flow::abort::already_configured_device%]", + "no_devices_found": "[%key:common::config_flow::abort::no_devices_found%]", "incomplete_discovery": "Incomplete discovery" } }