Eric Hagan
57777ef79a
Adds support for Pioneer AVR interface port number ( #3878 )
...
* Adds support for Pioneer AVR interface port number
https://community.home-assistant.io/t/support-for-pioneer-avr/503
telnetlib supports a port number so adding port as
an optional config element with a default of 23 resolves this.
* Adds timeout to Pioneer AVR
timeout in telnetlib defaults to socket._GLOBAL_DEFAULT_TIMEOUT
which is not a value, but rather a bare Object used for comparison.
telnetlib says the following about the timeout optional argument:
"The optional timeout parameter specifies a timeout in seconds
for blocking operations like the connection attempt (if not
specified, the global default timeout setting will be used)."
From the documentation for sockets:
"Sockets are by default always created in blocking mode"
Catching connect and timeout errors, logging to debug
and continuing.
* Catches timeout exceptions, logs and continues.
2016-10-22 11:05:00 +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
Johann Kellerman
fb94aaa5a1
Load yaml using validator and include consider_home ( #3743 )
...
* Load yaml using validator, consider_home
* timedelta, track_if_away
* improve voluptuous
* Add default back
* Change time_period validation order
2016-10-07 18:08:33 -07:00
Paulus Schoutsen
00e298206e
Optimize template 2 ( #3521 )
...
* Enforce compiling templates
* Refactor templates
* Add template validator to Logbook service
* Some more fixes
* Lint
* Allow easy skipping of rfxtrx tests
* Fix template bug in AND & OR conditions
* add entities extractor
Conflicts:
tests/helpers/test_template.py
* fix unittest
* Convert template to be async
* Fix Farcy
* Lint fix
* Limit template updates to related entities
* Make template automation async
2016-09-27 21:29:55 -07:00
Paulus Schoutsen
838b09bb8f
Bugfix group order ( #3323 )
...
* Add ordered dict config validator
* Have group component use ordered dict config validator
* Improve config_validation testing
* update doc string config_validation.ordered_dict
* validate full dict entries
* Further simplify ordered_dict validator.
* Lint fix
2016-09-11 22:25:01 -07:00
Pascal Vizeli
267cda447e
Add support for complex template structures to data_template ( #3255 )
2016-09-08 18:19:47 +02:00
Pascal Vizeli
5036bb0bc6
improve isfile validation check ( #3101 )
2016-09-01 14:35:00 +01:00
Fabian Affolter
ca1de9cac1
Add url to validation ( #2874 )
...
* Add url to validation
* Fix pylint issue
* Clean-up
2016-08-19 13:41:01 +02:00
Pascal Vizeli
4fcfffc172
add tcp/udp port to config validation ( #2854 )
2016-08-16 20:55:29 -07:00
Paulus Schoutsen
f904d06c9a
Add test for new template validation logic
2016-08-09 21:09:56 -07:00
Paulus Schoutsen
f76d545a08
Add script logic into helper.
2016-04-21 21:06:05 -04:00
Paulus Schoutsen
4f834ba3f1
Make all entity_ids lowercase ( #1786 )
2016-04-10 15:20:20 -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
Jan Harkes
cbe9a7d2a3
Add case insensitive testing to boolean string validation.
2016-04-03 21:38:58 -07:00
Paulus Schoutsen
e140e9b8ab
Add script + extra config validators
...
* Add config validation and extra validators
* Address PR comments
2016-04-03 10:19:09 -07:00
Paulus Schoutsen
5baa98b79f
Add initial config validation
2016-03-28 23:46:12 -07:00