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/airvisual/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async def async_step_node_pro(self, user_input=None):
return self.async_show_form(
step_id="node_pro",
data_schema=self.node_pro_schema,
errors={CONF_IP_ADDRESS: "unable_to_connect"},
errors={CONF_IP_ADDRESS: "cannot_connect"},
)

await node.async_disconnect()
Expand Down
6 changes: 3 additions & 3 deletions homeassistant/components/airvisual/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
}
},
"error": {
"general_error": "There was an unknown error.",
"invalid_api_key": "Invalid API key provided.",
"unable_to_connect": "Unable to connect to Node/Pro unit."
"general_error": "[%key:common::config_flow::error::unknown%]",
"invalid_api_key": "[%key:common::config_flow::error::invalid_api_key%]",
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]"
},
"abort": {
"already_configured": "These coordinates or Node/Pro ID are already registered."
Expand Down
2 changes: 1 addition & 1 deletion tests/components/airvisual/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async def test_node_pro_error(hass):
result["flow_id"], user_input=node_pro_conf
)
assert result["type"] == data_entry_flow.RESULT_TYPE_FORM
assert result["errors"] == {CONF_IP_ADDRESS: "unable_to_connect"}
assert result["errors"] == {CONF_IP_ADDRESS: "cannot_connect"}


async def test_options_flow(hass):
Expand Down