Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/upb/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def async_step_user(self, user_input=None):
if user_input is not None:
try:
if self._url_already_configured(_make_url_from_data(user_input)):
return self.async_abort(reason="address_already_configured")
return self.async_abort(reason="already_configured")
network_id, info = await _validate_input(user_input)
except CannotConnect:
errors["base"] = "cannot_connect"
Expand Down
6 changes: 3 additions & 3 deletions homeassistant/components/upb/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
}
},
"error": {
"cannot_connect": "Failed to connect to UPB PIM, please try again.",
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
"invalid_upb_file": "Missing or invalid UPB UPStart export file, check the name and path of the file.",
"unknown": "Unexpected error."
"unknown": "[%key:common::config_flow::error::unknown%]"
},
"abort": {
"address_already_configured": "An UPB PIM with this address is already configured."
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
}
}
}
2 changes: 1 addition & 1 deletion tests/components/upb/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def test_form_user_with_already_configured(hass):
_ = await valid_tcp_flow(hass)
result2 = await valid_tcp_flow(hass)
assert result2["type"] == "abort"
assert result2["reason"] == "address_already_configured"
assert result2["reason"] == "already_configured"
await hass.async_block_till_done()


Expand Down