Adam Mills
4242411089
Disable asuswrt tests ( #12663 )
2018-02-26 22:53:54 -08:00
Johann Kellerman
446390a8d1
AsusWRT log exceptions ( #12668 )
...
* logexception
* Improve err message #2978
* not quiet
* tests
2018-02-26 16:08:37 -08:00
Albert Lee
ebe4418afe
device_tracker.asuswrt: Ignore unreachable ip neigh entries ( #12201 )
2018-02-11 23:24:29 -08:00
Albert Lee
1db4df6d3a
device_tracker.asuswrt: Clean up unused connection param ( #12262 )
2018-02-09 15:21:10 -08: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
Ville Skyttä
3af7c67bf1
Fix asuswrt AttributeError on neigh for unknown device ( #11960 )
2018-01-27 15:20:28 +01:00
kennedyshead
2d8ef36a6c
fixes #11848 ( #11915 )
...
Adding tests to check the component after latest patch
2018-01-26 10:30:48 -08:00
Przemek Więch
024f1d4882
Try multiple methods of getting data in asuswrt. ( #11140 )
...
* Try multiple methods of getting data in asuswrt.
Solves #11108 and potentially #8112 .
* fix style
* fix lint
2017-12-17 12:46:47 +01:00
Mitko Masarliev
8e4942088e
Add option to set default hide if away for new devices ( #10762 )
...
* Option to change hide_if_away
* tests fix
* change new device defaults
* tests and requested changes
* fix assert
2017-12-05 21:56:43 -08:00
Pascal Vizeli
814834512a
Group service / dynamic handling ( #7971 )
...
* Add Service to group
* Finish service
* Add service functions
* fix lint
* Address paulus comments
* fix lint & cleanup
* fix lint
* fix lint
* fix lint p3
* add test for check group
* add more tests
* fix lint
* Update service.yaml
* Fix order for tests
* Fix comment
* Fix test
* Fix tests
* Fix name in tests
* Fix view
* Fix default value
* Fix lint
* Fix key error
* add name
* migrate component entity
* fix tests
* fix import
* migrate device tracker
* fix lint
* fix bug
* fix logic
* fix lint
* fix tests
* fix generator
* fix group
* fix other tests.
* Not need to load group on first stage anymore.
* fix service
* add more group depency
* fix tests
* Revert "fix tests"
This reverts commit 35a922b3a8
.
* Real fix
* fix test p2
* fix test p3
* fix test p4
* fix test p5
* fix test p6
* fix lint
* fix test p7
* Rename attribute
* fix group test
* fix bug
* fix flagy tests
* fix service.yaml
* fix lint
2017-06-16 00:52:28 +02:00
Lev Aronsky
c556b619b7
Asuswrt continuous ssh ( #7728 )
...
* Make ssh and telnet connections continuous in asuswrt
* Refactored SSH and Telnet connections into respective classes.
* Fixed several copy-paste typos and errors.
* More typos fixed.
* Small changes to arguments, to pass automated tests.
* Removed unsupported named arguments.
* Fixed a couple of mistakes in Telnet, and other lint errors.
* Added Telnet tests, and added lint exceptions.
* Removed comments from tests, as they irritated the hound.
2017-05-23 09:55:01 -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
Scott Bradshaw
37a8035c54
Added support for alternate SSH ports in AsusWRT ( #4832 ) ( #6109 )
...
* Added support for alternate SSH ports in AsusWRT (#4832 )
* Always set the SSH port in SSH arguments
* Removed whitespace
* Adding port=22 to the mock calls
* Changed config.get(CONF_PORT) to config[CONF_PORT] per feedback from @pvizeli
2017-02-20 09:06:50 +01:00
Paulus Schoutsen
c54517de90
Convert config.components to a set ( #5824 )
2017-02-09 20:21:57 +02:00
Paulus Schoutsen
aa1e4c564c
Fix tests closing properly ( #5203 )
2017-01-07 01:47:25 +01:00
Johann Kellerman
57f32fa629
Fixup device_tracekt.mqtt voluptuous & unit tests ( #3904 )
2016-10-18 18:10:28 -07:00
Rob Capellini
4891ca1610
Removing calls to mock.assert_called_once_with ( #3896 )
...
If a mock's assert_called_once_with method is misspelled (e.g. asert_called_once_with) then the test will appear as passing. Therefore, this commit removes all instances of assert_called_once_with calls and replaces them with two assertions:
self.assertEqual(mock.call_count, 1)
self.assertEqual(mock.call_args, mock.call(call_args))
2016-10-16 16:13:27 -07:00
Johann Kellerman
7b40a641ec
Continue on invalid platforms and new setup_component unit tests ( #3736 )
2016-10-08 11:27:35 -07:00
Johann Kellerman
91a3522100
Improve voluptuous and login errors for Asus device tracker ( #3170 )
2016-09-03 17:32:43 -06:00
Johann Kellerman
6f1c97b9d3
Voluptuous for AsusWRT ( #2998 )
...
* Voluptuous for AsusWRT
2016-08-27 22:30:06 +02:00
Matthew Treinish
aa3d0e1047
Fix incorrect check on presence of password and pub_key ( #2355 )
...
This commit fixes an issue with the use of None in default values
for the config get() calls in __init__() of AsusWrtDeviceScanner.
These values are cast as strings and when a NoneType is cast it
returns the string "None" this broke the check for the existence
of these fields. This commit fixes the issue by changing the default
value to be an empty string '' which will conform with the behavior
expected by the ssh login code.
Closes #2343
2016-06-22 17:01:39 -07:00
Matthew Treinish
1381984b77
Add ssh public key support to the asuswrt component ( #2287 )
...
The pexpect.pxssh module has support for using public key
authentication. [1] This commit adds support for leveraging that and
establishing a ssh connection with a public key instead of a password.
[1] http://pexpect.readthedocs.io/en/stable/api/pxssh.html#pexpect.pxssh.pxssh.login
2016-06-12 21:27:41 -07:00