Use reference strings in Dexcom (#41072)

* Update strings.json

* Update config_flow.py

* Update test_config_flow.py
This commit is contained in:
SNoof85 authored and GitHub committed 2020-10-02 20:48:12 +02:00
1 parent a3511a9a81
commit d282694efe
3 files changed
+9 -7

No files matched your search

@@ -46,9 +46,9 @@ class DexcomConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
user_input[CONF_SERVER] == SERVER_OUS,
)
except SessionError:
errors["base"] = "session_error"
errors["base"] = "cannot_connect"
except AccountError:
errors["base"] = "account_error"
errors["base"] = "invalid_auth"
except Exception: # pylint: disable=broad-except
errors["base"] = "unknown"