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>
This commit is contained in:
SNoof85
2020-10-06 19:54:20 +02:00
committed by GitHub
parent 6ab9d0bc31
commit f256d0a4ea
2 changed files with 3 additions and 4 deletions

View File

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

View File

@@ -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"
}
}