Florian Werner
8a2bc99f63
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
2018-09-08 01:10:08 +02:00
..
2018-08-24 16:37:30 +02:00
2018-08-22 09:17:29 +02:00
2018-08-24 10:17:43 -07:00
2018-09-04 21:16:24 +02:00
2018-08-24 16:37:30 +02:00
2018-08-19 22:29:08 +02:00
2018-08-21 15:29:11 +02:00
2018-08-13 11:27:18 +02:00
2018-09-02 16:42:08 +02:00
2018-08-07 09:27:40 +02:00
2018-08-14 21:14:12 +02:00
2018-08-20 17:39:53 +02:00
2018-08-19 22:29:08 +02:00
2018-08-24 19:37:22 +02:00
2018-08-24 10:28:43 +02:00
2018-08-19 22:29:08 +02:00
2018-08-24 16:37:30 +02:00
2018-08-09 09:27:54 +02:00
2018-08-30 13:58:23 +02:00
2018-08-22 09:17:29 +02:00
2018-08-19 22:29:08 +02:00
2018-08-24 10:39:35 +02:00
2018-08-14 21:14:12 +02:00
2018-08-22 09:17:29 +02:00
2018-07-13 03:57:41 +02:00
2018-08-24 10:28:43 +02:00
2018-08-29 17:04:04 +02:00
2018-08-19 22:29:08 +02:00
2018-08-24 16:37:30 +02:00
2018-08-19 22:29:08 +02:00
2018-08-29 15:46:09 +02:00
2018-09-04 10:31:45 +02:00
2018-06-15 15:19:58 -04:00
2018-08-24 10:28:43 +02:00
2018-07-17 10:49:15 +02:00
2018-09-04 21:18:35 +02:00
2018-08-19 22:29:08 +02:00
2018-08-21 15:49:58 +02:00
2018-08-24 16:37:30 +02:00
2018-09-04 09:24:42 +02:00
2018-09-08 01:10:08 +02:00
2018-08-13 11:27:18 +02:00
2018-08-24 16:37:30 +02:00
2018-08-19 22:29:08 +02:00
2018-08-24 16:37:30 +02:00
2018-08-24 16:37:30 +02:00
2018-08-19 22:29:08 +02:00
2018-08-24 16:37:30 +02:00
2018-08-14 21:14:12 +02:00
2018-08-19 22:29:08 +02:00
2018-08-24 10:28:43 +02:00
2018-08-19 22:29:08 +02:00
2018-08-28 00:20:12 +02:00
2018-08-19 22:29:08 +02:00
2018-08-21 15:49:58 +02:00
2018-08-19 22:29:08 +02:00
2018-08-24 10:28:43 +02:00
2018-08-19 22:29:08 +02:00
2018-08-31 12:54:25 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-20 17:39:53 +02:00
2018-08-20 17:39:53 +02:00
2018-08-20 17:39:53 +02:00
2018-08-20 17:39:53 +02:00
2018-08-20 17:39:53 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-21 15:49:58 +02:00
2018-08-19 22:29:08 +02:00
2018-08-23 11:14:18 +02:00
2018-08-19 22:29:08 +02:00
2018-08-24 10:28:43 +02:00
2018-07-20 11:45:20 +03:00
2018-06-28 16:49:33 +02:00
2018-08-19 22:29:08 +02:00
2018-04-21 08:34:42 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-06-16 08:58:39 +02:00
2018-08-19 22:29:08 +02:00
2018-09-04 21:16:24 +02:00
2018-08-19 22:29:08 +02:00
2018-09-02 00:01:11 +02:00
2018-05-14 09:13:59 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-08-19 22:29:08 +02:00
2018-07-17 19:34:29 +02:00
2018-08-19 22:29:08 +02:00
2018-08-24 10:28:43 +02:00
2018-08-19 22:29:08 +02:00
2018-08-14 21:14:12 +02:00