Marc Mueller
d61a96f0ab
Use correct relative imports [a-m] ( #63470 )
2022-01-05 17:28:12 +01:00
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
04a09d9215
Add 'for' to media_player device triggers ( #48505 )
...
* Add 'for' to media_player device triggers
* Update tests/components/media_player/test_device_trigger.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update test_device_trigger.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-30 16:40:26 +02:00
Erik Montnemery
72281f4718
Validate device trigger schemas once ( #48319 )
2021-03-26 08:09:21 +01:00
Marc Mueller
25a13d1554
Update typing 10 ( #48071 )
2021-03-18 13:07:04 +01:00
Erik Montnemery
28ef3f68f3
Add media_player device triggers ( #45430 )
...
* Add media player device triggers
* Update tests
2021-02-08 09:36:14 +01:00