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.)
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.)