Paulus Schoutsen
7511a5842d
Fix load_yaml default value ( #5383 )
2017-01-16 22:08:47 -08:00
Johann Kellerman
e487a09190
Remove None value before writing known_devices ( #4098 )
...
* Remove None
* Replace null
2016-11-01 21:51:31 -07: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
Johann Kellerman
5df8477536
Catch UnicodeDecodeError Error ( #4007 )
...
* Catch UnicodeDecodeError Error
Error for #3933
* Forgot (exc)
* catch...
* Tests by @lwis
* Docstring
* Create open
2016-10-23 18:55:06 -07:00
Lewis Juggins
13ab2be5f6
Exclude dirs/files prefixed with . ( #3986 )
2016-10-23 16:47:06 +02: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
Lewis Juggins
10feac11d9
Support recursive config inclusions ( #3783 )
2016-10-12 12:05:41 +02:00
Johann Kellerman
e8ad76c816
Improve yaml fault tolerance and handle check_config border cases ( #3159 )
2016-09-08 22:20:38 +02:00
Teagan Glenn
8d1a9d86ea
Yaml secret fallback to parent folders ( #2878 )
...
* Move secret cache out of loader so it can be referenced by other folders
* Unit test to verify secrets from another folder work & see if it overrides parent secret
* Clear secret cache after load
2016-08-20 21:39:56 +02:00
Johann Kellerman
7b02dc434a
Secrets support for configuration files ( #2312 )
...
* ! secret based on yaml.py
* Private Secrets Dict, removed cmdline, fixed log level
* Secrets limited to yaml only
* Add keyring & debug tests
2016-06-25 00:10:03 -07:00
happyleavesaoc
15f89fc636
add some include_dir options ( #2074 )
...
* add some include_dir options
* validate, and extend instead of add
* add yaml include tests
2016-05-17 15:47:44 -07:00
Daniel
24788b106b
Add test for yaml enviroment
2016-05-14 20:20:27 +02:00
Jan Harkes
dbbbed404c
Detect duplicate keys in configuration.yaml.
2016-04-05 21:21:16 -07:00