watchforstock / evohome-client

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

allow until to hours, minutes #103

Closed zxdavb closed 4 years ago

zxdavb commented 4 years ago

AutoWithEco mode has an 'official' resolution of hours in the Controller UI, but will work with minutes. Other modes, e.g. Away, have a resolution of days, but appear to work with (say) hours.

The client library rounds down all TimeUntils for _set_status() to midnight, this precludes the full extent of the above functionality.

This is (simple) the fix - to remove the rounding.

I have not tested on this client, but it is a very simple fix, and the equivalent fix has been tested on evohome-async.