core/homeassistant/components/growatt_server
Marco van 't Wout b426c4133d
Improve error handling for HTTP errors on Growatt Server (#110633)
* Update dependency growattServer for improved error details

Updating to latest version. Since version 1.3.1 it will raise requests.exceptions.HTTPError for unexpected API responses such as HTTP 405 (rate limiting/firewall)

* Improve error details by raising ConfigEntryAuthFailed

Previous code was returning None which the caller couldn't handle

* Use a more appropiate exception type

* Update homeassistant/components/growatt_server/sensor.py

* Update homeassistant/components/growatt_server/sensor.py

* Fix

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-04-29 12:02:49 +02:00
..
sensor_types
__init__.py
config_flow.py
const.py
manifest.json Improve error handling for HTTP errors on Growatt Server (#110633) 2024-04-29 12:02:49 +02:00
sensor.py Improve error handling for HTTP errors on Growatt Server (#110633) 2024-04-29 12:02:49 +02:00
strings.json