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
3f4ce70414
Fix 'same state' monitoring in state trigger ( #24904 )
2019-07-02 17:29:38 +02: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
Paulus Schoutsen
e276e899cf
Convert automation tests to async ( #17794 )
...
* Convert automation tests to async
* Fix 8 last tests
* Lint
2018-10-26 11:31:14 +02: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
cdce8p
fa98a27df7
Remove service helper (2) ( #16863 )
...
* alarm_control_panel
* automation
* camera
* climate
* counter
* fan
* Add legacy notes
* Fix tests
2018-09-26 09:49:55 +02:00
Paulus Schoutsen
746f4ac158
Add context to scripts and automations ( #16415 )
...
* Add context to script helper
* Update script component
* Add context to automations
* Lint
2018-09-04 21:16:24 +02:00
Ville Skyttä
dbd0763f83
Grammar and spelling fixes ( #16065 )
2018-08-19 22:29:08 +02:00
Otto Winter
8dcfd35b8b
Spelling fixes ( #12041 )
...
* Spelling fixes
*Lots* of them.
* Spelling breaking changes
* Fix lint errors
2018-01-29 23:37:19 +01:00
Adam Mills
6918993c75
Fix state for trigger with forced updates ( #11595 )
2018-01-11 22:06:09 -08:00
Pascal Vizeli
ea6ca9252c
Bugfix trigger state with multible entities ( #10857 )
...
* Bugfix trigger state with multible entities
* Fix numeric state
* fix lint
* fix dict
* fix unsub
* fix logic
* fix name
* fix new logic
* add test for state
* add numeric state test for unsub
* add test for multible entities
* Update numeric_state.py
* Update numeric_state.py
* Update state.py
* Fix logic for triple match
* Add clear to numeric state
* clear for state trigger
2017-11-30 21:03:52 +01:00
cdce8p
be5c0b2d92
Wait_template - support for 'trigger.entity_id' and data_template values ( #9807 )
...
* *Added support for use of 'trigger.entity_id' and service->data_template->script in wait_template
* * Fixed style violations
* * Fixed regular expression (_RE_GET_POSSIBLE_ENTITIES)
* * combined 'extract_entities' and 'extract_entities_with_variables'
* fixed regular expression
* * Added first test for extract_entities_with_variables
* * Added Unittests (tests/helpers/test_template.py test_extract_entities_with_variables)
* * Added Unittests (tests/helpers/test_script.py test_wait_template_variables)
* * Added Unittests (tests/components/automation/test_template.py test_wait_template_with_trigger)
* * Added Unittests (tests/components/automation/test_state.py test_wait_template_with_trigger)
* * Added Unittests (tests/components/automation/test_numeric_state.py test_wait_template_with_trigger)
* * Fixed style violations
* * Fixed style violations
* * Fixed style violations
* * Fixed style violations
* * Fixed style violations
* * Fixed style violations
* * Updated regular expression and delete whitespaces
2017-10-12 16:57:18 +02:00
Anders Melchiorsen
b83ff739bc
Remove deprecated automation keywords ( #8510 )
...
* Remove deprecated automation keywords
* Remove retired test case
* Remove retired keyword
2017-07-17 22:24:05 +02:00
Anders Melchiorsen
81f0826550
Ignore attribute changes in automation trigger from/to ( #7651 )
...
* Ignore attribute changes in automation trigger from/to
* Quote names in deprecation warnings
This makes it somewhat easier to read if the suggestion happens to be
named "to".
* Add test with same state, new attribute value
2017-05-20 15:18:59 -04:00
Paulus Schoutsen
e773133bcf
Fix automation failing to setup if no automations specified ( #7647 )
2017-05-17 21:57:50 -07:00
Adam Mills
e2e58e6acc
Automation State Change For timer attribute fix ( #7584 )
2017-05-15 00:34:30 -07:00
Paulus Schoutsen
2650c73a89
Split bootstrap into bs + setup ( #6416 )
...
* Split bootstrap into bs + setup
* Lint
2017-03-05 10:41:54 +01:00
Pascal Vizeli
41f558b181
Bootstrap / Component setup async ( #6264 )
...
* Bootstrap / Entiy setup async
* Cleanup add_job stuff / return task/future object
* Address paulus comments / part 1
* fix install pip
* Cleanup bootstrap / move config stuff to config.py
* Make demo async
* Further bootstrap improvement
* Address Martin's comments
* Fix initial tests
* Fix final tests
* Fix bug with prepare loader
* Remove no longer needed things
* Log error when invalid config
* More cleanup
* Cleanups platform events & fix lint
* Use a non blocking add_entities callback for platform
* Fix Autoamtion is setup befor entity is ready
* Better automation fix
* Address paulus comments
* Typo
* fix lint
* rename functions
* fix tests
* fix test
* change exceptions
* fix spell
2017-02-28 20:33:19 -08:00
Paulus Schoutsen
c54517de90
Convert config.components to a set ( #5824 )
2017-02-09 20:21:57 +02:00
Fabian Affolter
51e20c92f9
WIP Fix pylint and PEP257 issues (tests) ( #4120 )
...
* Fix pylint and PEP257 issues
* More PEP257 fixes
2016-12-01 21:45:19 -08:00
Paulus Schoutsen
62785c2431
More async tests ( #4223 )
...
* Annotate test callbacks to be async
* Convert device_sun_light_trigger to be async
2016-11-05 16:36:20 -07:00
Pascal Vizeli
d5368f6f78
Async bootstrap / component init ( #3991 )
...
* Async bootstrap
* Adress comments
* Fix tests
* More fixes
* Tests fixes
2016-10-27 00:16:23 -07:00
Paulus Schoutsen
7ab7edd81c
Make automation async
2016-10-01 14:11:16 -07:00
Paulus Schoutsen
609d7ebea5
Migrate core from threads to async awesomeness ( #3248 )
...
* Add event loop to the core
* Add block_till_done to HA core object
* Fix some tests
* Linting core
* Fix statemachine tests
* Core test fixes
* fix block_till_done to wait for loop and queue to empty
* fix test_core for passing, and correct start/stop/block_till_done
* Fix remote tests
* Fix tests: block_till_done
* Fix linting
* Fix more tests
* Fix final linting
* Fix remote test
* remove unnecessary import
* reduce sleep to avoid slowing down the tests excessively
* fix remaining tests to wait for non-threadsafe operations
* Add async_ doc strings for event loop / coroutine info
* Fix command line test to block for the right timeout
* Fix py3.4.2 loop var access
* Fix SERVICE_CALL_LIMIT being in effect for other tests
* Fix lint errors
* Fix lint error with proper placement
* Fix slave start to not start a timer
* Add asyncio compatible listeners.
* Increase min Python version to 3.4.2
* Move async backports to util
* Add backported async tests
* Fix linting
* Simplify Python version check
* Fix lint
* Remove unneeded try/except and queue listener appproriately.
* Fix tuple vs. list unorderable error on version compare.
* Fix version tests
2016-09-12 19:16:14 -07:00
Paulus Schoutsen
3fa1963345
Convert automation to entities with services
2016-08-25 23:36:48 -07:00
Paulus Schoutsen
4e568f8b99
Automation: Add trigger context and expose to action
2016-04-21 13:59:42 -07:00
Paulus Schoutsen
8ef542927f
Add automation config validation
...
* Add automation config validation
* Remove unnecessary dict validator
* Downgrade voluptuous to 0.8.9
* Fix linting
* Address issues
2016-04-04 12:18:58 -07:00
Paulus Schoutsen
956f6056f9
Remove support for old deprecated automation config
2016-03-13 00:00:05 -08:00
Fabian Affolter
9838697d2b
Fix PEP257 issues
2016-03-09 10:25:50 +01:00
Stefan Jonasson
e4485dcf3d
Updated structure, added more tests
2016-02-22 09:40:27 +01:00
Stefan Jonasson
6e7ca9505c
Removed unused import
2016-02-20 22:25:41 +01:00
Stefan Jonasson
f3c95adaca
Fixed now => utcnow
...
Fixed added time patch to unittest
2016-02-20 22:15:49 +01:00
Stefan Jonasson
ff6e071dff
added the for param to the conditions as well
2016-02-20 12:52:42 +01:00
pavoni
9e48b88154
Add `for` delay to state automation.
2016-02-19 15:28:17 +00:00
Paulus Schoutsen
09ab3e95c0
Tests should all use test HA
2016-02-14 15:08:23 -08:00
Fabian Affolter
00afaac54c
Update for file header, docstrings, and PEP8/PEP257
2016-02-13 14:19:11 +01:00
Paulus Schoutsen
b6d26597c0
Automation - state platfor: Flag if user makes config error
2015-10-11 18:30:25 -07:00
Paulus Schoutsen
dd4e1cbd1d
Change automation action config keys
2015-09-19 08:43:56 -07:00
Paulus Schoutsen
c18294ee76
Allow triggers to be used as condition
2015-09-15 08:56:06 -07:00
Paulus Schoutsen
e26f0f7b7d
Update stale header doc
2015-09-15 00:02:46 -07:00
Paulus Schoutsen
68c1dd7cd4
Refactor automation configuration
2015-09-14 22:05:40 -07:00
Paulus Schoutsen
2fe8b154f1
Fix state automation configuration
2015-09-14 18:22:49 -07:00
Paulus Schoutsen
2a11d02fe4
Add if to automation
2015-09-13 22:27:27 -07:00
Paulus Schoutsen
1b89a502c4
Extract core into own submodule
2015-08-16 20:44:46 -07:00
Paulus Schoutsen
291cc62381
Add automation mqtt tests
2015-08-10 23:11:46 -07:00
Paulus Schoutsen
eecc51c92d
Add tests for automation component
2015-08-10 22:26:12 -07:00