mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 16:15:08 +02:00
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:
@@ -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(
|
||||
|
@@ -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"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user