Improve error handling for Powerwall (#34580)

* Improve error handling
	modified:   homeassistant/components/powerwall/__init__.py
	modified:   homeassistant/components/powerwall/config_flow.py
	modified:   homeassistant/components/powerwall/const.py
	modified:   homeassistant/components/powerwall/strings.json
	modified:   homeassistant/components/powerwall/translations/en.json

* Change exception name
	modified:   homeassistant/components/powerwall/__init__.py
	modified:   homeassistant/components/powerwall/config_flow.py

* Add test

* Rename PowerwallError to POWERWALL_ERROR

* Modify handling of APIChangedErrors
	modified:   homeassistant/components/powerwall/__init__.py
	modified:   homeassistant/components/powerwall/const.py
This commit is contained in:
jrester authored and GitHub committed 2020-04-26 19:14:53 -05:00
1 parent aa2bfbb541
commit 4b998ea6af
6 files changed
+76 -21

No files matched your search

@@ -8,6 +8,7 @@
},
"error": {
"cannot_connect": "Failed to connect, please try again",
"wrong_version": "Your powerwall uses a software version that is not supported. Please consider upgrading or reporting this issue so it can be resolved.",
"unknown": "Unexpected error"
},
"abort": { "already_configured": "The powerwall is already configured" }