Update axis to use common strings (#41164)
* Update axis to use common strings * Update common str device_unavailable to cannot_connect Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
This commit is contained in:
1 parent
8b2df5bf99
commit
33e69fe4bf
3 files changed
+10
-10
No files matched your search
@@ -94,10 +94,10 @@ class AxisFlowHandler(config_entries.ConfigFlow, domain=AXIS_DOMAIN):
|
||||
return await self._create_entry()
|
||||
|
||||
except AuthenticationRequired:
|
||||
errors["base"] = "faulty_credentials"
|
||||
errors["base"] = "invalid_auth"
|
||||
|
||||
except CannotConnect:
|
||||
errors["base"] = "device_unavailable"
|
||||
errors["base"] = "cannot_connect"
|
||||
|
||||
data = self.discovery_schema or {
|
||||
vol.Required(CONF_HOST): str,
|
||||
|
||||
Reference in new issue
Block a user