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

[Fix for issue #396] Ignoring devices from device list response with missing keys #398

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

christoffer-woost
Copy link

The /device/list endpoint did return my Delta 3 Plus with a missing puductName field.
This change ignores all devices that don't include a "sn", "online"-status and a "productName".

{ 'code': '0', 'message': 'Success', 'data': [{ 'sn': 'XXXXXXXX, 'online': 0, 'productName': 'PowerStream' }, { 'sn': 'XXXXXXXX', 'deviceName': 'PowerStream Delta Pro 3', 'online': 0, 'productName': 'PowerStream' }, { 'sn': 'XXXXXXXX', 'deviceName': 'WAVE 2', 'online': 0, 'productName': 'WAVE 2' }, { 'sn': 'XXXXXXXX', 'deviceName': 'DELTA Pro 3', 'online': 1, 'productName': 'DELTA Pro 3' }, { 'sn': 'XXXXXXXX', 'deviceName': 'Delta 3 Plus', 'online': 1 }], 'eagleEyeTraceId': 'ea1a2a582917358540634803952d0007', 'tid': '' }

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.

1 participant