nkgilley / python-ecobee-api

Python API for controlling Ecobee Thermostats
MIT License
44 stars 40 forks source link

Improve debug logging #54

Closed marthoc closed 4 years ago

marthoc commented 4 years ago

I'm trying to track down a problem with tokens becoming invalid when this library is used in Home Assistant, and this PR adds debugging to the PIN and token methods to hopefully pinpoint exactly where the problem arises. Version bumped to next patch version (0.2.7).

(Also: try to debug log the request response in json for easier to parse logs, fall back to text response on any exception.)