1
0
mirror of https://github.com/home-assistant/core.git synced 2026-08-05 04:48:51 +01:00
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
2019-01-16 14:23:46 -08:00
2019-02-14 20:34:43 +01: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
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
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
2019-02-05 19:31:15 -08:00
2019-02-28 19:32:41 -05:00
2019-02-14 20:34:43 +01:00