mirror of
https://github.com/home-assistant/core.git
synced 2026-09-12 19:49:41 +01:00
* 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