Commit graph

10 commits

Author SHA1 Message Date
Markus Nigbur
453f7c7294 Fire restarted event on restarting active timer ()
* Fire restarted event on restarting active timer

* Added test for the restart event
2020-01-07 00:00:23 +01:00
Phil Bruckner
e233dd7cbe Fix timer with empty config () 2020-01-04 23:01:58 +01:00
Franck Nijhof
33828ae514 Migrate timer tests from coroutine to async/await () 2020-01-01 16:20:18 +01:00
Alexei Chetroi
41bef4b919 Add timer reload service. () 2019-12-18 21:15:11 +01:00
Bas Nijholt
de915e1bf0 Sort imports according to PEP8 for components starting with "T" () 2019-12-09 14:41:48 +01:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Robbert Müller
9928b977fd Added events STARTED, RESTARTED AND PAUSED ()
Rewrote the tests a bit
the 'wait for the timer to finish' part of the test is now it's own test.
The rest is a sequence of fire/assert. Which i rewrote to a loop to
reduce the amount of duplicate code
2018-12-29 16:40:17 +01:00
Adam Mills
66f1643de5
Async timer tests () 2018-11-24 16:12:19 -05:00
Paulus Schoutsen
08fe7c3ece
Pytest tests ()
* Convert core tests

* Convert component tests to use pytest assert

* Lint 🤷‍♂️

* Fix test

* Fix 3 typos in docs
2018-10-24 12:10:05 +02:00
Pascal Vizeli
0f7a4b1d6f Move timer into correct folder ()
* Move timer into correct folder

* Rename tests/components/test_timer.py to tests/components/timer/test_timer.py

* create init for test component

* Fix services.yaml loading
2017-11-03 21:10:08 -07:00
Renamed from tests/components/test_timer.py (Browse further)