Use common strings in denonavr integration (#41746)
This commit is contained in:
parent
622c56b6a7
commit
ee1b6d3195
3 changed files with 5 additions and 5 deletions
|
@ -158,7 +158,7 @@ class DenonAvrFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
self.zone3,
|
self.zone3,
|
||||||
)
|
)
|
||||||
if not await connect_denonavr.async_connect_receiver():
|
if not await connect_denonavr.async_connect_receiver():
|
||||||
return self.async_abort(reason="connection_error")
|
return self.async_abort(reason="cannot_connect")
|
||||||
receiver = connect_denonavr.receiver
|
receiver = connect_denonavr.receiver
|
||||||
|
|
||||||
mac_address = await self.async_get_mac(self.host)
|
mac_address = await self.async_get_mac(self.host)
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
"title": "Select the receiver that you wish to connect",
|
"title": "Select the receiver that you wish to connect",
|
||||||
"description": "Run the setup again if you want to connect additional receivers",
|
"description": "Run the setup again if you want to connect additional receivers",
|
||||||
"data": {
|
"data": {
|
||||||
"select_host": "Receiver IP"
|
"select_host": "Receiver IP address"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
"abort": {
|
"abort": {
|
||||||
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
|
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
|
||||||
"already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]",
|
"already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]",
|
||||||
"connection_error": "Failed to connect, please try again, disconnecting mains power and ethernet cables and reconnecting them may help",
|
"cannot_connect": "Failed to connect, please try again, disconnecting mains power and ethernet cables and reconnecting them may help",
|
||||||
"not_denonavr_manufacturer": "Not a Denon AVR Network Receiver, discovered manafucturer did not match",
|
"not_denonavr_manufacturer": "Not a Denon AVR Network Receiver, discovered manafucturer did not match",
|
||||||
"not_denonavr_missing": "Not a Denon AVR Network Receiver, discovery information not complete"
|
"not_denonavr_missing": "Not a Denon AVR Network Receiver, discovery information not complete"
|
||||||
}
|
}
|
||||||
|
|
|
@ -389,7 +389,7 @@ async def test_config_flow_manual_host_connection_error(hass):
|
||||||
)
|
)
|
||||||
|
|
||||||
assert result["type"] == "abort"
|
assert result["type"] == "abort"
|
||||||
assert result["reason"] == "connection_error"
|
assert result["reason"] == "cannot_connect"
|
||||||
|
|
||||||
|
|
||||||
async def test_config_flow_manual_host_no_device_info(hass):
|
async def test_config_flow_manual_host_no_device_info(hass):
|
||||||
|
@ -416,7 +416,7 @@ async def test_config_flow_manual_host_no_device_info(hass):
|
||||||
)
|
)
|
||||||
|
|
||||||
assert result["type"] == "abort"
|
assert result["type"] == "abort"
|
||||||
assert result["reason"] == "connection_error"
|
assert result["reason"] == "cannot_connect"
|
||||||
|
|
||||||
|
|
||||||
async def test_config_flow_ssdp(hass):
|
async def test_config_flow_ssdp(hass):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue