Files
core/tests/components
Willem Burgers 458548daec Fix TypeError (#21734)
* timediff is of type timedelta. Divide by timedelta does not work.

- convert a timedelta to int
- make sure the test inputs real timestamps

* Convert the total_seconds to decimal and round the result

readings are of type Decimal, so fix test to reflect that

* split line into multiple statements

Line too long

* use total_seconds instead of timediff

* Make both values float instead of Decimal
2019-03-09 17:51:15 +01:00
..
2019-02-05 19:31:15 -08:00
2019-02-05 19:31:15 -08:00
2018-12-02 16:32:53 +01:00
2019-01-16 14:23:46 -08:00
2019-02-14 20:34:43 +01:00
2018-11-24 16:12:29 -05:00
2019-02-07 22:50:59 +01:00
2019-02-05 19:31:15 -08:00
2019-02-14 20:34:43 +01:00
2019-02-07 22:50:59 +01:00
2019-02-12 16:38:19 +01:00
2019-02-24 15:56:19 +01:00
2018-08-24 10:39:35 +02:00
2019-01-11 12:55:23 -08:00
2019-02-05 19:31:15 -08:00
2019-02-05 19:31:15 -08:00
2019-02-10 12:50:40 +01:00
2019-02-24 10:49:50 -06:00
2019-02-07 22:50:59 +01:00
2018-12-02 16:32:53 +01:00
2019-02-05 19:31:15 -08:00
2019-02-05 19:31:15 -08:00
2019-02-05 19:31:15 -08:00
2019-03-09 17:51:15 +01:00
2019-02-05 19:31:15 -08:00
2019-02-05 19:31:15 -08:00
2019-02-17 09:55:33 +01:00
2019-02-26 10:18:09 -08:00
2019-02-08 14:18:18 -08:00
2018-11-05 09:23:58 +01:00
2019-02-05 19:31:15 -08:00
2019-02-28 19:32:41 -05:00
2018-08-19 22:29:08 +02:00
2019-02-14 20:34:43 +01:00
2016-03-09 10:25:50 +01:00
2018-12-02 16:32:53 +01:00