Erik Montnemery
c85bb27d0d
Teach state trigger about entity registry ids ( #60271 )
...
* Teach state trigger about entity registry ids
* Tweak
* Add tests
* Tweak tests
* Fix tests
* Resolve entity ids during config validation
* Update device_triggers
* Fix mistake
* Tweak trigger validator to ensure we don't modify the original config
* Add index from entry id to entry
* Update scaffold
* Pre-compile UUID regex
* Address review comment
* Tweak mock_registry
* Tweak
* Apply suggestion from code review
2021-12-02 14:26:45 +01:00
Ville Skyttä
b10fc89a6b
Automation trigger info type hint improvements ( #55402 )
...
* Make automation trigger info a TypedDict
* zwave_js trigger type hint fixes
* Remove redundant automation trigger info field presence checks
* Use async_initialize_triggers in mqtt and tasmota device_trigger tests
2021-09-04 02:25:51 +02:00
Ville Skyttä
0095c6baeb
Improve device trigger type hinting ( #54907 )
2021-08-22 20:32:50 +02:00
Erik Montnemery
76c3058d15
Rename device trigger base schema to DEVICE_TRIGGER_BASE_SCHEMA ( #51719 )
2021-06-10 19:11:38 +02:00
Erik Montnemery
225d79c216
Add 'for' to vacuum device triggers ( #48506 )
...
* Add 'for' to vacuum device triggers
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update test_device_trigger.py
* Update test_device_trigger.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-30 16:40:08 +02:00
Erik Montnemery
b3b0904b94
Simplify device trigger code ( #48507 )
2021-03-30 13:54:27 +02:00
Erik Montnemery
72281f4718
Validate device trigger schemas once ( #48319 )
2021-03-26 08:09:21 +01:00
Marc Mueller
b67b9b94f9
Update typing 13 ( #48077 )
2021-03-18 14:43:52 +01:00
Erik Montnemery
f99c27c6d4
Remove unneeded from_state from device triggers ( #45152 )
2021-02-08 11:09:45 +01:00
Phil Bruckner
ca9dd0c833
Reorganize trigger code ( #38655 )
2020-08-17 11:54:56 -05:00
Bas Nijholt
0a4979549d
use isort to sort imports according to PEP8 for vacuum ( #29650 )
2019-12-08 22:47:01 +05:30
Paulus Schoutsen
6999a712ef
Add device triggers to vacuum ( #28548 )
...
* Add device triggers to vacuum
* Update strings
2019-11-07 13:39:35 +01:00