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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions BAC0/core/devices/local/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def analog(**kwargs):
def analog_input(**kwargs):
kwargs["name"] = set_default_if_not_provided("name", "AI", **kwargs)
kwargs["objectType"] = AnalogInputObject
kwargs["instance"] = 0
kwargs["instance"] = set_default_if_not_provided("instance", 0, **kwargs)
# kwargs['is_commandable'] = True # Futur

return analog(**kwargs)
Expand All @@ -97,7 +97,7 @@ def analog_input(**kwargs):
def analog_output(**kwargs):
kwargs["name"] = set_default_if_not_provided("name", "AO", **kwargs)
kwargs["objectType"] = AnalogOutputObject
kwargs["instance"] = 0
kwargs["instance"] = set_default_if_not_provided("instance", 0, **kwargs)
kwargs["is_commandable"] = True

return analog(**kwargs)
Expand All @@ -106,7 +106,7 @@ def analog_output(**kwargs):
def analog_value(**kwargs):
kwargs["name"] = set_default_if_not_provided("name", "AV", **kwargs)
kwargs["objectType"] = AnalogValueObject
kwargs["instance"] = 0
kwargs["instance"] = set_default_if_not_provided("instance", 0, **kwargs)
kwargs["is_commandable"] = True
return analog(**kwargs)

Expand Down