philippelt / netatmo-api-python

Netatmo connect API python client (for Netatmo information, see https://dev.netatmo.com)
GNU General Public License v3.0
193 stars 121 forks source link

rawAPI : not possible to distinguish wrong parameters from a legit setthermmode request #89

Closed dusscloud closed 1 week ago

dusscloud commented 1 week ago

Hello,

Good job with this python API.

I am using the rawAPI and noticed :

I think the rawAPI function shall create an exception when request result is none or status is not ok to cover this case

philippelt commented 1 week ago

Thanks for the diagnostic. You are right, I will now return the raw response if no "body" found.