w1ll1am23 / pyeconet

Python 3 interface to the EcoNet API
MIT License
34 stars 18 forks source link

fix: do not update global HEADERS var (breaks re-login attempt) #32

Closed teleshoes closed 1 year ago

teleshoes commented 1 year ago

fixes the following: 1) attempt to use token (e.g.: to fetch locations) 2) token fails, out of date, etc 3) attempt to login with email+pw (even with a new api instance i.e.: EcoNetApiInterface.login()) 4) clearblade user token header is still present in authenticate headers, login fails