-
Notifications
You must be signed in to change notification settings - Fork 659
Adding multiple channels support to neoVI #415
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
Conversation
| :param int channel: | ||
| The Channel id or name to create this bus with. | ||
| :param list channel: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, we should annotate this with the correct type. See "Container types such as lists and dictionaries can be linked automatically using the following syntax: ...".
| ics_msg.StatusBitField3 & ics.SPY_STATUS3_CANFD_BRS | ||
| ), | ||
| channel=ics_msg.NetworkID | ||
| channel=int(ics_msg.NetworkID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this already an int? If not, wouldn't line 221 fail?
| if msg.channel is not None: | ||
| message.NetworkID = msg.channel | ||
| else: | ||
| # defaults to the first channel in channels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be surprising! We should at least document this clearly, or maybe even raise an Exception? Another option would be to send it to all, but I guess that is unexpected as well?
Codecov Report
@@ Coverage Diff @@
## develop #415 +/- ##
===========================================
- Coverage 61.65% 61.51% -0.14%
===========================================
Files 55 55
Lines 4572 4584 +12
===========================================
+ Hits 2819 2820 +1
- Misses 1753 1764 +11 |
No description provided.