JPHutchins / open-energy-view

View resource consumption trends, history, analysis, and insights.
https://www.openenergyview.com
Other
70 stars 11 forks source link

Registration RI problem #1

Closed JPHutchins closed 4 years ago

JPHutchins commented 4 years ago

Remove the =None s in the constructor. Instead take a keyword method=get_auth_file argument which is the function that will provide the credentials. RI is that client_id, client_secret, cert_crt_path, cert_key_path are not None so constructor will fail of the the supplied function does not fill these class attributes. Validation can wait for later if at all.