rgerganov / py-air-control

Command line app for controlling Philips air purifiers
MIT License
266 stars 53 forks source link

Check session key after load #11

Closed L-Henke closed 4 years ago

L-Henke commented 5 years ago

A changed session key is only handled on get operations. If you set a value and the session key has changed, the communication fails. This PR adds a _get() call after the key is loaded to that a new session key will be generated if is has expired.

rgerganov commented 4 years ago

Rebased and merged, thanks