Jan-Philipp Benecke
eda475fe25
Update h* tests to use entity & device registry fixtures ( #103866 )
...
* Update h* tests to use entity & device registry fixtures
* Add missed lines
2023-11-12 13:52:32 -05:00
J. Nick Koston
0e6b3d6583
Switch async_track_same_state to use async_call_later ( #99219 )
...
* Switch async_track_same_state to use async_call_later
There was no need to use async_track_point_in_utc_time here since
we only need a delay
* update trigger tests
* remove some more utcnow patching
* remove some more utcnow patching
* remove some more utcnow patching
2023-08-28 22:30:20 +02:00
Erik Montnemery
17ac1a6d32
Set automations which fail validation unavailable ( #94856 )
2023-06-27 18:23:33 +02:00
epenet
a102883eff
Add type hints to integration tests (part 2) ( #88493 )
2023-02-21 09:25:05 +01:00
Erik Montnemery
cc4a179ca8
Support templating for in state conditions ( #88411 )
2023-02-20 18:57:00 +01:00
Thomas Lovén
7cc799becf
Fix setup failure tests failing for the wrong reason ( #70144 )
2022-04-16 11:59:38 +02:00
Franck Nijhof
fb92fc6a8e
Trigger on not matching to/from states ( #69760 )
2022-04-12 14:18:23 -07: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
Erik Montnemery
4f01631bd6
Allow triggering on all state changes, ignoring attributes ( #59713 )
...
* Allow triggering on all state changes, ignoring attributes
* Add comment
* Apply suggestions from code review
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-11-16 08:35:52 +01:00
Erik Montnemery
b26779a27a
Add id to automation triggers ( #48464 )
2021-03-31 14:56:04 +02:00
Franck Nijhof
5a2b5fe7c5
Yoda assertion style removed is ( #48142 )
2021-03-20 13:55:10 +01:00
Erik Montnemery
2744d64a3e
Pass variables to state trigger templates ( #46208 )
...
* Pass variables to state trigger templates
* Remove non working test
2021-02-08 13:22:01 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
fe2c16dc29
Allow any value when triggering on state attribute ( #41261 )
2020-10-05 12:53:12 +02:00
Franck Nijhof
8837ed35cd
Use direct service calls in tests instead of automation common ( #40623 )
...
* Use direct service calls in tests instead of automation common
* Remove automation common test helpers
2020-09-26 19:28:26 +02:00
Kevin Cathcart
371b589cb2
Fix bug in state trigger when using for: without to: ( #40556 )
2020-09-25 09:15:04 +02:00
Bas Nijholt
c2a9a39ee0
Don't trigger on attribute when the attribute doesn't change ( #39910 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-09-11 14:02:17 +02:00
Franck Nijhof
7c86fa0203
Support 'for' without setting the 'to'-state in automation state triggers ( #39730 )
2020-09-07 16:30:02 +02:00
Anders Melchiorsen
4b84b74b89
Support state trigger with from/for but no to ( #39480 )
2020-09-07 16:08:24 +02:00
Paulus Schoutsen
415213a325
Add support for attributes in state/numeric state trigger ( #39238 )
2020-08-25 16:21:16 +02:00
Phil Bruckner
ca9dd0c833
Reorganize trigger code ( #38655 )
2020-08-17 11:54:56 -05:00