Add missed CONF_API_VERSION config in flow + Fix missing_data translation (#34356)

* Add missed CONF_API_VERSION config in flow + remove CONF_NAME in tests

* Fix missing_data translation
This commit is contained in:
Quentame authored and GitHub committed 2020-04-17 22:45:17 +02:00
1 parent 3aa2de5fa5
commit 618538aeff
4 files changed
+22 -15

No files matched your search

@@ -5,7 +5,7 @@
},
"error": {
"login": "Login error: please check your username & password",
"unknown": "Unknown error: please retry later or an other configuration"
"missing_data": "Missing data: please retry later or an other configuration"
},
"flow_title": "Synology DSM {name} ({host})",
"step": {
@@ -137,6 +137,7 @@ class SynologyDSMFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
CONF_SSL: use_ssl,
CONF_USERNAME: username,
CONF_PASSWORD: password,
CONF_API_VERSION: api_version,
}
if user_input.get(CONF_DISKS):
config_data[CONF_DISKS] = user_input[CONF_DISKS]
@@ -27,7 +27,7 @@
},
"error": {
"login": "Login error: please check your username & password",
"unknown": "Unknown error: please retry later or an other configuration"
"missing_data": "Missing data: please retry later or an other configuration"
},
"abort": { "already_configured": "Host already configured" }
}