hass-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 Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
__init__.py Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
config_flow.py Add empty line after module docstring (2) [components] (#112736) 2024-03-08 19:15:59 +01:00
const.py Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
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 Add deduplicate translations script (#96384) 2023-07-13 11:52:50 -04:00