palazzem / econnect-python

API adapter used to control programmatically an Elmo alarm system
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

Remove boilerplate in ElmoClient #37

Closed palazzem closed 4 years ago

palazzem commented 4 years ago

Overview

There is some code duplication in ElmoClient public functions. Most of the code is always an API call with error checking. Probably we should refactor the code with some internal functions that are used across all methods.