Use reference strings in iaqualink (#41292)

* Update strings.json

* Update config_flow.py

* Update test_config_flow.py
This commit is contained in:
SNoof85 2020-10-05 21:55:12 +02:00 committed by GitHub
parent 72cbdbbe36
commit 7a12a16fc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -23,7 +23,7 @@ class AqualinkFlowHandler(config_entries.ConfigFlow):
# Supporting a single account.
entries = self.hass.config_entries.async_entries(DOMAIN)
if entries:
return self.async_abort(reason="already_setup")
return self.async_abort(reason="single_instance_allowed")
errors = {}
@ -36,7 +36,7 @@ class AqualinkFlowHandler(config_entries.ConfigFlow):
await aqualink.login()
return self.async_create_entry(title=username, data=user_input)
except AqualinkLoginException:
errors["base"] = "connection_failure"
errors["base"] = "cannot_connect"
return self.async_show_form(
step_id="user",