Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove instance override for analog points #288

Merged
merged 4 commits into from
Jul 28, 2021

Conversation

igloodan
Copy link

@igloodan igloodan commented Jul 27, 2021

I apologise if I've missed something here but I'm trying to get my head around the whole fork/pull-request process!

It seems that the models.py file overrides any "instance" value passed in via **kwargs with zero, I've removed this override and implemented the already available set_default_if_not_provided() function.

@ChristianTremblay
Copy link
Owner

There is a mechanism in local/object.py that will increment instance number if the one provided is already taken.

@ChristianTremblay
Copy link
Owner

I think I responded too fast.... I used to just create a bunch of AI, AO without providing instances numbers... but you are saying that if you provide something else, it get changed right ?
If so, your solution works.

@ChristianTremblay ChristianTremblay changed the base branch from master to develop July 28, 2021 00:28
@ChristianTremblay ChristianTremblay merged commit c363d02 into ChristianTremblay:develop Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants