epenet
88cfbf6a34
Add type hints to integration tests (part 22) ( #88234 )
2023-02-16 14:08:03 +01:00
epenet
278050a73f
Add type hints to integration tests (t-z) ( #87707 )
2023-02-08 19:10:53 +01:00
epenet
30bf0634fe
Add per-file-ignore to pylint ( #86289 )
2023-01-22 17:26:24 +01:00
Erik Montnemery
4898a41dcf
Don't allow partial update of timer settings ( #78378 )
2022-09-13 14:58:12 -04:00
Erik Montnemery
b0d033ef29
Add mixin class CollectionEntity for the collection helper ( #77703 )
...
* Add mixin class CollectionEntity for the collection helper
* Improve typing
* Address review comments
* Fix tests
2022-09-03 12:56:49 +02:00
Raman Gupta
df4ddc6491
Allow timer state to be restored on restart ( #67658 )
2022-03-29 23:04:46 -07:00
Franck Nijhof
8aff8d89d2
Clean up async_reproduce_state helper usage ( #68617 )
2022-03-24 14:40:54 +01:00
Raman Gupta
2791cd68c2
Timer code cleanup ( #67604 )
2022-03-09 10:42:07 +01:00
Franck Nijhof
5a2b5fe7c5
Yoda assertion style removed is ( #48142 )
2021-03-20 13:55:10 +01:00
Erik Montnemery
b3fecb1c95
Update tests t-z to use async_get() instead of async_get_registry() ( #47655 )
2021-03-09 14:25:03 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Bram Kragten
4b01ab616a
Timer make attribute format always h:mm:ss ( #38292 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-09-07 19:12:52 +02:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Franck Nijhof
bc5a2da7b7
Add transition support to scenes, cleanup blocking parameter ( #34434 )
2020-04-20 18:07:50 -07:00
akasma74
83cc871edf
Add force_update to timer integration ( #31646 )
...
* force_update added
As per this discussion we need to update last_changed when active timer restarted.
One way to do that is to force HA update the state on each request even if it remains the same.
More details here - https://github.com/home-assistant/architecture/issues/345
* add test for force_update
make sure state_change event fired every time timer (re)started
* remove whitespaces
* remove whitespace
* Update tests/components/timer/test_init.py
Co-Authored-By: Alexei Chetroi <lexoid@gmail.com>
* fix lint
* fix isort
Co-authored-by: Alexei Chetroi <lexoid@gmail.com>
2020-04-02 23:48:41 -07:00
Alexei Chetroi
5fa7d6f22a
Allow input_* and timer component setup without config ( #30772 )
...
* Allow input_boolean setup without config.
* Allow input_number setup without config.
* Allow input_select setup without config.
* Allow input_text setup without config.
* Allow timer setup without config.
2020-01-14 22:15:59 -05:00
Alexei Chetroi
0a7feba855
Use storage based collections for Timer platform ( #30765 )
...
* Use config dict for timer entity.
* Manage timer entities using collection helpers.
* Add tests.
* Make Timer duration JSON serializable.
2020-01-14 15:32:48 -08:00
Paulus Schoutsen
5fdc60e067
Add Safe Mode ( #30723 )
...
* Store last working HTTP settings
* Add safe mode
* Fix tests
* Add cloud to safe mode
* Update logging text
* Fix camera tests leaving files behind
* Make emulated_hue tests not leave files behind
* Make logbook tests not leave files behind
* Make tts tests not leave files behind
* Make image_processing tests not leave files behind
* Make manual_mqtt tests not leave files behind
2020-01-14 13:03:02 -08:00
Markus Nigbur
453f7c7294
Fire restarted event on restarting active timer ( #30475 )
...
* 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 ( #30463 )
2020-01-04 23:01:58 +01:00
Franck Nijhof
33828ae514
Migrate timer tests from coroutine to async/await ( #30352 )
2020-01-01 16:20:18 +01:00
Alexei Chetroi
41bef4b919
Add timer reload service. ( #30015 )
2019-12-18 21:15:11 +01:00
Bas Nijholt
de915e1bf0
Sort imports according to PEP8 for components starting with "T" ( #29778 )
2019-12-09 14:41:48 +01:00
Santobert
50e9a9df4f
Timer reproduce state ( #28117 )
2019-10-22 23:12:17 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Robbert Müller
9928b977fd
Added events STARTED, RESTARTED AND PAUSED ( #19516 )
...
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 ( #18683 )
2018-11-24 16:12:19 -05:00
Paulus Schoutsen
08fe7c3ece
Pytest tests ( #17750 )
...
* 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 ( #10324 )
...
* 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