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
8c65062271
Several optimizations to automations ( #35007 )
2020-05-01 16:37:25 +02:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Paulus Schoutsen
77443b3d09
Add Home Assistant Started event ( #34657 )
2020-04-24 14:13:39 -07:00
Franck Nijhof
bc5a2da7b7
Add transition support to scenes, cleanup blocking parameter ( #34434 )
2020-04-20 18:07:50 -07:00
springstan
eae21be5b9
Improve string formatting v6 ( #33698 )
2020-04-07 23:14:28 +02:00
Eugenio Panadero
fb22f6c301
Add Context support for async_entity removal ( #33209 )
...
* Add Context for async_remove
* Check context in state automation on entity removal
2020-03-24 09:59:17 -07:00
Eugenio Panadero
cd57b764ce
Fix state_automation_listener when new state is None ( #32985 )
...
* Fix state_automation_listener when new state is None (fix #32984 )
* Listen to EVENT_STATE_CHANGED instead of using async_track_state_change
and use the event context on automation trigger.
* Share `process_state_match` with helpers/event
* Add test for state change automation on entity removal
2020-03-23 16:05:21 -07:00
Paulus Schoutsen
4cf86262af
Numeric state trigger: validate that above is not above below ( #32421 )
...
* Numeric state trigger: validate that above is not above below
* Lint
2020-03-03 17:26:44 -08:00
Paulus Schoutsen
67680bcfa8
Automation device/entity extraction to include triggers + conditions ( #31474 )
...
* Add support for extracting triggers
* Add support for extracting triggers
* Fix test
2020-02-05 16:52:21 +01:00
Paulus Schoutsen
424e15c7a7
Find related items scripts/automations ( #31293 )
...
* Find related items scripts/automations
* Update manifest
2020-01-29 16:19:13 -08:00
Christian Clauss
1d537ad416
Fix typo: serivce --> service ( #31217 )
2020-01-27 19:56:26 +01:00
Ville Skyttä
5e2ba2eb77
Enable some more bandit checks ( #30857 )
...
* Enable B108 (hardcoded tmp dir), address findings
* Enable B602 (subprocess popen with shell), address findings
* Enable B604 (start process with shell), address findings
* Enable B306 (mktemp), B307 (eval), and B325 (tempnam), no issues to address
2020-01-20 18:44:55 +02: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
Santobert
3d7488d188
Trigger automation without skipping condition ( #28484 )
...
* Trigger automation without skipping condition
* [] instead of .get()
* Update __init__.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-01-08 10:36:11 +01:00
Paulus Schoutsen
9aa02e35a7
Entity Component to no longer generate automatic groups ( #23789 )
2020-01-07 17:30:53 +01:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling ( #30500 )
...
* Be consistent with Home Assistant spelling
* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Bas Nijholt
d3f67c3841
use isort to sort imports according to PEP8 for automation ( #29620 )
2019-12-08 21:59:39 +05:30
Alexei Chetroi
ccb0fd5e32
Register automation.reload service as an admin service. ( #29582 )
...
* homeassistant/components/automation/__init__.py
* Register automation.reload as an admin service.
2019-12-07 21:17:30 +01:00
Paulus Schoutsen
41440d4f1b
Fix litejet tests
2019-12-04 21:47:35 -08:00
Paulus Schoutsen
02d9ed5e36
Do not select all entities when omitting entity ID in service call ( #29178 )
...
* Do not select all entities when omitting entity ID
* Address comments Matthew
* Require either area_id or entity_id
* Fix tests
* Fix test
2019-12-02 16:23:12 -08:00
Erik Montnemery
42691b783e
Handle empty service in script action gracefully ( #27467 )
...
* Handle empty service in script action gracefully
* Add test
2019-10-12 12:28:47 -07:00
Santobert
cc1cca0a14
automation_reproduce_state ( #27222 )
2019-10-05 12:31:51 -07:00
Erik Montnemery
fad54cd6d8
Ensure sun conditions are using the right date ( #23664 )
...
* Ensure sun conditions are using the right date
2019-08-16 17:34:56 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Phil Bruckner
9944e675a5
Add template support to state trigger's for option ( #24912 )
2019-07-08 13:59:58 -07:00
Phil Bruckner
f9b9883aba
Add template support to numeric_state trigger's for option ( #24955 )
2019-07-08 13:58:50 -07:00
Phil Bruckner
8dca73d08e
Add missing trigger.for variable to template trigger ( #24893 )
2019-07-02 17:46:26 +02:00
Phil Bruckner
3f4ce70414
Fix 'same state' monitoring in state trigger ( #24904 )
2019-07-02 17:29:38 +02:00
Phil Bruckner
945afbc6d4
Fix 'same state' monitoring in numeric_state trigger ( #24910 )
2019-07-02 17:28:02 +02:00
Phil Bruckner
03e6a92cf3
Add template support to template trigger's for option ( #24810 )
2019-06-28 22:30:47 -07:00
Franck Nijhof
d648eb1e4f
Minor improvements to automation test suite ( #24424 )
...
* Minor improvements to automation test suite
* Removes unused asyncio imports
* Removes some vars that are not needed
2019-06-08 19:10:23 -05:00
Franck Nijhof
9235b52828
Restore automation last_triggered with initial_state override ( #24400 )
...
* Restore automation last_triggered with initial_state override
* Made test async/await
* Fixes linter warning
* Update test_init.py
2019-06-08 12:48:36 -07:00
Paulus Schoutsen
7887d6d6e4
Fix automation failing to restore state ( #24390 )
...
* Fix automation off
* Fix tests
2019-06-07 23:08:22 -07:00
Phil Bruckner
61dabae6ab
Add for option for template triggers ( #24330 )
2019-06-07 21:45:37 -07:00
Paulus Schoutsen
de1fd5a7fa
WS: Improve service calling errors ( #23840 )
...
* WS: Improve service calling errors
* Docstyle
* Types
* Update text
2019-05-14 07:09:11 +02:00
Erik Montnemery
3c5abcc71a
Improve sun automation tests ( #23588 )
...
* Improve sun automation tests
* Lint
* Restore timezone after test
2019-05-02 09:46:32 +02:00
ActuallyRuben
df580b2322
Add URL query parameters to webhook trigger result data ( #23043 )
...
* Added query parameters to webhook data
* Added test for query webhook
* Add second blank line in new test for webhook trigger
2019-04-14 10:53:35 -07:00
Paulus Schoutsen
e48ef7f441
Fix broken platform components ( #22943 )
...
* Fix broken platform components
* Lint
2019-04-09 15:42:44 -07:00
Jason Hu
c82d2cb11c
Cherry pick test fix ( #22939 )
2019-04-09 13:59:15 -07:00
Paulus Schoutsen
52f337ef00
Allow chaining contexts ( #21028 )
...
* Allow chaining contexts
* Add stubbed out migration
2019-03-01 10:08:38 -08:00
emontnemery
ec5da05804
Add character encoding to MQTT automation. ( #20292 )
2019-01-24 22:43:56 -08:00
Adam Mills
336b6adc88
Split time_pattern triggers from time trigger ( #19825 )
...
* Split interval triggers from time trigger
* Default smaller interval units to zero
* Rename interval to schedule
* Rename schedule to time_pattern
2019-01-15 09:33:34 -08:00
Malte Franken
6d3343e4d1
Geo Location -> Geolocation (class names and unit test comments) ( #19877 )
...
* fixed geolocation naming in class names
* fixed geolocation naming in comments in unit test
2019-01-08 20:11:51 -08:00
Paulus Schoutsen
9d9e11372b
Make automations log errors ( #18965 )
2018-12-13 12:21:16 +01:00
Jason Hunter
b900005d1e
New Events and Context Fixes ( #18765 )
...
* Add new events for automation trigger and script run, fix context for image processing, add tests to ensure same context
* remove custom logbook entry for automation and add new automation event to logbook
* code review updates
2018-12-04 09:45:17 +01:00
Adam Mills
0d7cb54872
Update litejet automation tests to async ( #18287 )
2018-11-07 09:56:10 +01:00
Ville Skyttä
9c840f93f0
Use const.SUN_EVENT_* more ( #18039 )
2018-10-31 09:10:28 +01:00
Anders Melchiorsen
3de822a0e2
RFC: Static templates match no entities, not all ( #17991 )
...
* Static templates match no entities, not all
* Clean up test values
2018-10-30 12:03:27 +01:00