• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

home-assistant / home-assistant / 49129
94%

Build:
DEFAULT BRANCH: dev
Ran 07 Sep 2018 11:23PM UTC
Jobs 1
Files 440
Run time 32s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
49129

push

travis-ci

fabaff
Add rate of change to statistics sensor (#15632)

* always export max_age/min_age

* downgrade errors of missing data
on start with empty recorder database these errors are logged multiple times:
ERROR (MainThread) [homeassistant.components.sensor.statistics] mean requires at least one data point
ERROR (MainThread) [homeassistant.components.sensor.statistics] variance requires at least two data points

downgrade them to debug as they are not meaningful to end users

* add change_rate attribute
this calculates the average change rate of all data points

* simplify count, reorder attribute calculation

* reorder initialization

* reorder attribute names

* don't use min/max for min_age/max_age

* add test case

* style

* style

* sort constants

* init variables with None

* add precision config setting

* round to precision

* test round

38112 of 40645 relevant lines covered (93.77%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
4 49129.4 (TOXENV=cov) 07 Sep 2018 11:23PM UTC 0
93.77
Travis Job 49129.4
Source Files on build 49129
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #49129
  • 8a2bc99f on github
  • Prev Build on dev (#49119)
  • Next Build on dev (#49158)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc