Closed bdabelow closed 3 years ago
Sorry for changing the interface on you :-) I had designed it a long time ago and when I came back to the code I wanted to change all this :-)
I'm tempted to completely remove the nYnabClient.__init__ but it might be too much. I think we should have something that closely resembles the create_client method, probably without the (*args, **kwargs), but (email, password, budget_name, connection=None). Your PR goes in the right direction I think
Do you have a workaround until it is included?
Sorry for taking that long coming back to your issue.
You can use the clientfactory directly, I think, nYnabClientFactory().create_client(email, password, budget_name, connection)
I'm working on your PR (rebasing on new commits where I'm fixing the unittests for PRs), should be integrated soon
PR has been merged long ago.
It looks like nYnabClient.__init__ was not adapted for the new interface of create_client in ClientFactory.