JohNan / homeassistant-wellbeing

Get the status from your Electrolux devices connected to Wellbeing
MIT License
79 stars 22 forks source link

Handling Error from the api-server #83

Closed olanystrom closed 7 months ago

olanystrom commented 7 months ago

Adding raise_for_status() for API-reqeusts to generate an aiohttp.ClientResponseError exeptopn when server reponds with an http.response > 400

Makes it easier to understand why some requests fail.