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 field that is no longer returned #11

Closed
wants to merge 1 commit into from

Conversation

estiens
Copy link

@estiens estiens commented Apr 21, 2022

  • charging status is no longer reported in the endpoint which causes the rest of the property setting to fail - removing this field from the parsing allows it to work, but recommend also error handling that allows properties that can't be determined/parsed to be set in an "unknown" state rather than not working at all to protect from breaking changes

@sbabcock23
Copy link
Owner

Hi @estiens,

Can you share a sample output of the API call for your account? I have the following sample for my dog and there is an "isCharging" state. What output do you have when you call this API? Also is your collar a Version 2 or 1?

"data": { "pet": { "__typename": "Pet", "chip": null, "device": { "__typename": "Device", "id": "FC198", "moduleId": "FC198", "info": { "buildId": "1.4.0-898-g03404c60d-module-fw-6", "batteryPercent": 94, "hasPowerSupply": false, "**isCharging": false**, "batteryVoltage": 4196, "batteryHealth": 92, "batteryHealthStatus": 3, "batteryNominalAvailableCapacity": 481, "batteryFullAvailableCapacity": 518, "temperature": 307.5, "uptime": 681188,

@estiens
Copy link
Author

estiens commented May 4, 2022

this appears to be fixed now...

@estiens estiens closed this May 4, 2022
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