Ville Skyttä
55ee8959ba
Spelling fixes ( #11940 )
2018-01-27 11:58:27 -08: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
f29ee24b72
Do not allow config dependency ( #6036 )
...
* Do not allow config dependency
* Prevent config in discovery
* Migrate to blacklist
2017-02-18 11:31:37 -08:00
Pascal Vizeli
41849eab06
Core cleanup: two stage shutdown ( #5876 )
...
* Core cleanup: two stage shutdown
* fix spell
* fix
* add async logger to close
* change aiohttp to use CLOSE
* address paulus comments
* Fix tests
* Add unittest
2017-02-13 06:24:07 +01:00
Pascal Vizeli
4e8d20328a
Fix check_config script. ( #5853 )
2017-02-10 08:51:08 -08:00
Paulus Schoutsen
c54517de90
Convert config.components to a set ( #5824 )
2017-02-09 20:21:57 +02:00
Pascal Vizeli
2cbed9cd96
Move signal handling out of core to bootstrap ( #5815 )
...
* Move signal handling out of core to bootstrap
* Fix tests
2017-02-08 21:58:45 -08:00
Pascal Vizeli
50c8224365
Bugfix async log handler ( #4954 )
...
* Bugfix async log handler
* fix boostrap test
* Use hass.data for store handler and cleanup on async_stop
* Update bootstrap.py
2016-12-17 12:21:52 -08:00
Paulus Schoutsen
b35fa4f1c1
Finish all tasks before setup phase is done ( #4606 )
2016-11-30 13:02:45 -08:00
Fabian Affolter
be272ac64a
Disable too-many-* ( #4107 )
...
* Disable too-many-* and too-few-public-methods
* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01: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
Rob Capellini
272539105f
Replacing tempfile with mock_open in tests ( #3753 )
...
- test_bootstrap.py
- test_config.py
- components/test_init.py
- components/test_panel_custom.py
- components/test_api.py
- components/notify/test_file.py
- components/notify/test_demo.py
- components/camera/test_local_file.py
- helpers/test_config_validation.py
- util/test_package.py
- util/test_yaml.py
No changes needed in:
- components/cover/test_command_line.py
- components/switch/test_command_line.py
- components/rollershutter/test_command_line.py
- components/test_shell_command.py
- components/notify/test_command_line.py
Misc changes in:
- components/mqtt/test_server.py
Also, removed some unused mock parameters in tests/components/mqtt/test_server.py.
2016-10-17 20:16:36 -07:00
Johann Kellerman
cb322f72db
Add persistent notifications to bootstrap ( #3738 )
...
* Add persistent notifications to bootstrap
* Rebase, Fix test
2016-10-13 09:09:07 -07:00
Johann Kellerman
7b40a641ec
Continue on invalid platforms and new setup_component unit tests ( #3736 )
2016-10-08 11:27:35 -07:00
Paulus Schoutsen
ac4e54c6ff
Filter out falsey platform configs
2016-09-24 00:03:44 -07:00
Ben Bangert
256062fd99
Fix test shutdown to ensure loop/threads are clean. ( #3447 )
...
* Fix test shutdown to ensure loop/threads are clean.
We now ensure the loop is closed, it has completed, and the
executer has completed. This ensure all threads are freed
up with any test calling hass.stop().
* Fix lint issue with run_loop
2016-09-18 20:35:58 -07:00
Paulus Schoutsen
5995f2438e
fix remove listener ( #3196 )
2016-09-07 06:59:59 -07:00
Paulus Schoutsen
e9813b219e
Allow reloading automation without restarting HA ( #3002 )
2016-09-04 17:15:52 +02:00
Paulus Schoutsen
62ba0fa7a2
Do not install pip packages in tests
2016-08-25 23:23:14 -07:00
Paulus Schoutsen
f1632496f0
Allow circular dependency with discovery ( #2616 )
2016-07-25 22:49:10 -07:00
Paulus Schoutsen
6714392e9c
Move elevation to core config and clean up HTTP mocking in tests ( #2378 )
...
* Stick version numbers
* Move elevation to core config
* Migrate forecast test to requests-mock
* Migrate YR tests to requests-mock
* Add requests_mock to requirements_test.txt
* Move conf code from bootstrap to config
* More config fixes
* Fix some more issues
* Add test for set config and failing auto detect
2016-06-27 09:02:45 -07:00
Jan Harkes
241735c924
Change local library path from {config_dir}/lib to {config_dir}/deps. ( #1799 )
...
Just on the off chance that someone who happens to run as root and also
doesn't correctly parse "just remove config /lib and restart".
2016-04-11 20:07:50 -07:00
Paulus Schoutsen
f6d584af09
Allow platforms to specify PLATFORM_SCHEMA
2016-04-02 20:10:57 -07:00
Paulus Schoutsen
489c5b8188
bootstrap platform components: adjust instead of replace config
2016-03-31 21:11:14 -07:00
Paulus Schoutsen
8ceab5d4ba
Add extra tests
2016-03-29 22:50:38 -07:00
Paulus Schoutsen
25269cdb6b
Add tests for bootstrap config validation
2016-03-29 00:17:53 -07:00
Fabian Affolter
9838697d2b
Fix PEP257 issues
2016-03-09 10:25:50 +01:00
Paulus Schoutsen
cd6d44ece3
Properly clean up Home Assistant instances in tests
2016-02-20 01:05:52 -08:00
Paulus Schoutsen
1bfea626ff
Handle circular setup dependency
2016-02-19 23:20:14 -08:00
Paulus Schoutsen
09ab3e95c0
Tests should all use test HA
2016-02-14 15:08:23 -08:00
Paulus Schoutsen
61630783f1
Disable location queries
2016-02-02 21:33:59 -08:00
Ryan Kraus
2651021461
Added test for entity customization
...
Added test for entity customization from configuration. Processes a
sample configuration to hide an entity, creates the entity, updates ha
state, and then verifies customization made it through.
2016-01-30 21:27:00 -05:00
Paulus Schoutsen
0f68dc6b7b
Add tests for version upgrade
2015-11-15 14:28:50 -08:00
Paulus Schoutsen
60abaa585c
Add test for bootstrap
2015-08-11 08:20:13 -07:00