Use common strings for Onvif config flow (#41170)

* Use common strings for Onvif config flow

* Fix tests

* Update homeassistant/components/onvif/strings.json

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
Diefferson Koderer Môro 2020-10-05 10:27:48 -03:00 committed by GitHub
parent c7027e2828
commit dde465da48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -262,7 +262,7 @@ class OnvifFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
return self.async_abort(reason="onvif_error")
except Fault:
errors["base"] = "connection_failed"
errors["base"] = "cannot_connect"
return self.async_show_form(step_id="auth", errors=errors)