explosivo22 / rinnaicontrolr

Python interface for the Rinnai Control-R API
Apache License 2.0
12 stars 3 forks source link

widen the interface #6

Closed dulitz closed 3 years ago

dulitz commented 3 years ago

When merged, this pull request adds additional interface methods for setting and retrieving the temperature setpoint, and retrieving recirculation and heating state.

It also changes getDevices() to the more-pythonic get_devices(), and it makes start_recirculation() take a device (that is, one of the list items returned by get_devices()) instead of other values that the caller previously had to extract from the device dictionary.

Finally, it makes clear that the API isn't authenticated -- it doesn't call validate_token() because there's no reason to.

Also general cleanups/refactoring.