hass-core/tests
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
..
components Fix updater, add new fields (#3982) 2016-10-21 23:30:40 -07:00
fixtures Added unit test to the Yahoo Finance sensor (#3943) 2016-10-20 20:14:50 +02:00
helpers Adds support for Pioneer AVR interface port number (#3878) 2016-10-22 11:05:00 +02:00
resources Revised package util tests 2016-01-30 14:08:32 -05:00
scripts Add persistent notifications to bootstrap (#3738) 2016-10-13 09:09:07 -07:00
testing_config/custom_components Exclude tests in dependencies in test dir from pytest (#2618) 2016-07-25 08:26:07 -07:00
util Fix PEP257 issues (#3962) 2016-10-20 19:10:12 +02:00
__init__.py Tweak Recorder 2016-07-11 08:56:07 -07:00
common.py Clean up some async stuff (#3915) 2016-10-17 19:38:41 -07:00
test_bootstrap.py Replacing tempfile with mock_open in tests (#3753) 2016-10-17 20:16:36 -07:00
test_config.py Replacing tempfile with mock_open in tests (#3753) 2016-10-17 20:16:36 -07:00
test_core.py Clean up some async stuff (#3915) 2016-10-17 19:38:41 -07:00
test_loader.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_main.py Migrate core from threads to async awesomeness (#3248) 2016-09-12 19:16:14 -07:00
test_remote.py Clean up some async stuff (#3915) 2016-10-17 19:38:41 -07:00