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

Batch state updates for reporting power plugs #389

Draft
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

puddly
Copy link
Contributor

@puddly puddly commented Mar 5, 2025

Fixes #388.

When attribute reports come in, we wait for a set period of time (currently 1s) before recomputing state. If all of the expected reports come in, we emit state immediately.

Are there any other places this code would be useful? Or should we keep it specific to power monitoring?

Copy link

codecov bot commented Mar 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.44%. Comparing base (cb03c2f) to head (54bfc73).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #389      +/-   ##
==========================================
+ Coverage   96.42%   96.44%   +0.01%     
==========================================
  Files          61       61              
  Lines        9661     9692      +31     
==========================================
+ Hits         9316     9347      +31     
  Misses        345      345              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Sampling skew for IKEA INSPELNING in ElectricalMeasurement class
1 participant