watchforstock / evohome-client

Python client to access the Evohome web service
Apache License 2.0
88 stars 52 forks source link

WIP: Allow injection of refresh tokens & access tokens... #76

Closed zxdavb closed 5 years ago

zxdavb commented 5 years ago

@watchforstock, I am not sure if this is a good idea, or not. I am not sure if it will work with Python 2.

It should be a non-breaking change, as users will still pull the tokens from (e.g.) c.refresh_token.

However, it will also allow:

c.access_token = "xxx"
c.access_token_expires = datetime("xxx")
zxdavb commented 5 years ago

Bugger! I did it again!