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 bugs and add basic tests #5

Merged
merged 5 commits into from
Apr 10, 2024
Merged

Fix bugs and add basic tests #5

merged 5 commits into from
Apr 10, 2024

Conversation

poolski
Copy link
Owner

@poolski poolski commented Apr 10, 2024

  • Run release action on multiple platforms in parallel
  • Refactor code to make it a bit more testable
  • Add some basic tests
  • Support arbitrary sensor IDs properly

The previous implementation of the Result type assumed a specific sensor
ID would be present when unmarshaling JSON, which isn't always going to
be the case.

This approach converts the type into an anonymous struct which properly
supports us setting a custom sensor ID for incoming power.
@poolski poolski force-pushed the refactor-and-add-tests branch from 43f8370 to 3839fe8 Compare April 10, 2024 11:31
@poolski poolski merged commit aac0240 into main Apr 10, 2024
1 check passed
@poolski poolski deleted the refactor-and-add-tests branch April 10, 2024 11:36
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