Anton Lundin
548417761e
ubus: Refresh session on Access denied ( #8111 )
...
When a openwrt router reboots, all the session ids gets invalidated.
In that case we need to log in again and get a new session id.
Signed-off-by: Anton Lundin <glance@acc.umu.se >
2017-06-22 13:34:57 +02:00
Luar Roji
04920fa0bf
Only mark active DHCP clients as present ( #8110 )
...
We only want to know which of the DHCP clients are indeed active.
For example: I've a table of static DHCP leases with most of the IPs of my network, so this module is always detecting them as present. With my patch only the active ones will be detected as present.
I already mentioned here: https://github.com/home-assistant/home-assistant/pull/7366#issuecomment-302950139
2017-06-20 12:16:56 +02:00
Caleb
6a017efc0e
Update pyunifi component to use APIError passed from pyunifi 2.13. Better accommodate login failures with wrapper in pyunifi 2.13. ( #7899 )
...
* Pyunifi update
* Update pyunifi_test
* Import API Error
* Adjust test_unifi.py to import APIError
* Remove urllib import
* Remove urllib import from test
* Try fix mock
* Remove automations.yaml
* Lint
2017-06-17 11:09:27 -07:00
Erik Eriksson
a119bd0056
Provide entity_id to avoid sensor mixup ( fixes #7636 ). Use async_dispatcher. Provide icon. ( #7946 )
...
* Avoid sensor mixup. Fixes #7636 . Also provide icon. Plus some smaller
fixes.
* fix async p1
* Create volvooncall.py
2017-06-15 22:28:30 -07: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 35a922b3a8d00821a00d153997b7be57117de328.
* 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
Fabian Affolter
d1da53615f
Upgrade pysnmp to 4.3.8 ( #8044 )
2017-06-15 21:24:31 +02:00
Andrey
02f7eb9675
Allow device_tracker platforms to specify picture and icon upon discovery ( #8018 )
...
* Allow device tracker platforms to specify picture
* Allow device tracker to specify icon during discovery
* Clean up and add tests
* Fix lint
* Fix test
2017-06-14 14:39:18 +02:00
Fabian Affolter
9189cbdc8b
Remove globally disabled pylint issues ( #8005 )
2017-06-13 11:10:32 +02:00
vrs01
8a4e993183
Update ping.py ( #7944 )
2017-06-08 07:30:51 +02:00
Fabian Affolter
1c4e097bed
Upgrade pysnmp to 4.3.7 ( #7828 )
2017-05-30 09:08:57 +02:00
Lev Aronsky
8fcc750998
Added handling of an AssertionError from pxssh failed login ( #7750 )
...
* Added handling of an AssertionError from pxssh failed login
* Destory and re-create pxssh instance, to fix behavior upon router restart.
2017-05-29 11:22:20 +02:00
Fabian Affolter
c12b8f763c
Upgrade pysnmp to 4.3.6 ( #7806 )
2017-05-29 10:28:31 +02:00
Paulus Schoutsen
e68bd0457c
Fix more deprecation warnings ( #7778 )
...
* Remove setting up an hbmqtt broker
* Don't pass loop to web.Application in tests
* Use .query instead of deprecated .GET for aiohttp requests
* Fix closing file resource
* Do not use asyncio mark
* Notify.html5 - PyJWT: Use options to disable verify
* Yamaha: Test was still using deprecated ip
* Remove pytest-asyncio
2017-05-26 13:12:17 -07:00
Paulus Schoutsen
f43db3c615
Replace executor with async_add_job ( #7658 )
...
* Remove executor
* Lint
* Lint
* Fix tests
2017-05-26 08:28:07 -07:00
Anton Sarukhanov
3a843e1817
Add icons to device tracker. ( #7759 )
2017-05-24 19:12:26 -07: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
tobygray
ca3f07cdef
device_tracker.ubus: Handle empty results ( #7673 )
...
If OpenWRT isn't running the DHCP server then some OpenWRT hardware,
such as TP-Link TL-WDR3600 v1, can't determine the host
corresponding to an associated wifi client. This change handles that
by returning None when the request has no data in the result.
2017-05-21 17:26:05 -07:00
LvivEchoes
99ea1e3f4f
Continue tracking device over dhcp lease table if wireless adapter not installed ( #7690 )
2017-05-21 17:18:55 -07:00
Paulus Schoutsen
d369d70ca5
Fix tests ( #7659 )
...
* Remove global hass
* Http.auth test no longer spin up server
* Remove server usage from http.ban test
* Remove setupModule from test device_sun_light_trigger
* Update common.py
2017-05-19 07:37:39 -07:00
Adam Mills
04f1054d07
Automatic version bump ( #7555 )
2017-05-11 22:47:47 +02:00
Adam Mills
8c90fd19ff
Try to request current_location Automatic scope ( #7447 )
2017-05-10 05:44:52 -07:00
Fabian Affolter
c12c742297
Upgrade beautifulsoup4 to 4.6.0 ( #7491 )
2017-05-08 19:39:40 +02:00
Caleb
41212b90c4
Update to pyunifi 2.12 ( #7468 )
...
* Update to pyunifi 2.12
* Update requirements_all.txt
2017-05-06 22:39:21 -07:00
Robbie Trencheny
12910de9ae
Merge pull request #7289 from jminardi/jminardi/tplink-logout
...
Log out of TP-Link router after devices are recorded.
2017-05-04 18:47:25 -07:00
Adam Mills
c35d09d5f0
Convert automatic device tracker to push updates ( #7404 )
...
* Convert automatic device tracker to push updates
* Update test
* Add to coveragerc
* Fire hass events when automatic update received
* Change brace indentation
2017-05-02 21:21:17 -07:00
Fabian Affolter
4d52b0ecd5
Update docstrings ( #7405 )
...
* Update docstrings
* Fix lint issues
* Update docstrings
2017-05-02 22:47:20 +02:00
Fabian Affolter
a4f1f6e724
Update docstrings ( #7374 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstring
* Update docstrings
* Update docstrings
* Fix lint issues
* Update docstrings
* Revert changes in dict
2017-05-02 09:18:47 -07:00
Jack Minardi
7a24e210ae
Try again to pass string to error msg
2017-05-01 09:31:23 -04:00
Alok Saboo
86cfc2a0ed
Updated docstrings ( #7383 )
...
* Updated docstrings
* Updated docstrings
* Updated docstrings
* Update docstrings
* Update more docstrings
2017-04-30 20:10:08 -07:00
Jack Minardi
bc0559813c
Dont add two strings inside logger call
2017-04-30 22:26:16 -04:00
Jack Minardi
dd7690f265
Use % formatting
2017-04-30 21:31:55 -04:00
Jack Minardi
b6827ce57a
Use throwaray variable name
2017-04-30 21:02:03 -04:00
Fabian Affolter
3ee4d1060f
Update docstrings ( #7361 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update tomato.py
* Update isy994.py
* Lint + fix tests
* Lint
2017-04-29 22:04:49 -07:00
LvivEchoes
e4ebae55d5
Feature/add mikrotik device tracker ( #7366 )
...
* Add Mikroik device tracker platform
* Update coveragerc with mikrotik.py
* Update coveragerc with mikrotik.py
* Fix lint errors
2017-04-29 20:39:11 -07:00
Adam Mills
6631e9e939
Version bump for automatic ( #7329 )
2017-04-27 08:01:30 -04:00
Adam Mills
00f034cef2
Version bump of aioautomatic ( #7300 )
...
* Version bump of aioautomatic
* Update requirements_all.txt
2017-04-25 20:21:16 -07:00
Jack Minardi
8bf1c21738
Add space
2017-04-25 00:48:23 -04:00
Jack Minardi
943861a8a3
Remove unused var
2017-04-25 00:45:59 -04:00
Jack Minardi
450fd7f2b5
Log out of router admin interface after devices are recorded.
2017-04-25 00:34:26 -04:00
Jack Minardi
2d5da3e958
Catch KeyError; Add response.text to error message
2017-04-25 00:32:31 -04:00
Fabian Affolter
cfc023e128
Don't use len(SEQUENCE) as condition value ( #7249 )
...
* Don't use len(SEQUENCE) as condition value
* Update volvooncall.py
2017-04-23 20:41:09 -07:00
Gianluca Barbaro
f59b3da5fe
JSON MQTT Device tracker ( #7055 )
...
* ready for PR
* minor fix
* another minor fix
* new platform mqtt_json
* using ATTR constants
* voluptuous check on JSON payload
* voluptuous check on JSON payload
2017-04-19 22:53:07 -07:00
Anders Melchiorsen
6cbe28a9cd
Send stderr of ping tracker to devnull ( #7096 )
...
When pinging an inaccessible device, OS errors like
ping: sendto: No route to host
can occur. For a ping tracker this is not an error but rather a normal
situation. Thus, it makes sense to hide the error.
2017-04-15 19:00:01 -07:00
Adam Mills
35de3a1dc4
Use third-party lib aioautomatic for automatic ( #7126 )
2017-04-15 18:11:36 -07:00
Fabian Affolter
c43a3efabd
Remove globally disabled pylint issue and update docstrings ( #7111 )
2017-04-15 00:32:04 +02:00
Martin Hjelmare
4e388666b2
Fix mysensors callback ( #7057 )
...
* Fix mysensors callback
* All messages was not triggering proper updates. Fix by checking all
child value types each update.
* Upgrade mysensors dep
* Fix pickle persistence when upgrading.
2017-04-11 19:17:09 -07:00
Fabian Affolter
cc459e25cc
Remove configuration sample ( #7048 )
2017-04-11 09:05:27 -07:00
Martin Hjelmare
749f79e813
Upgrade mysensors dep and callbacks ( #6950 )
2017-04-06 00:21:21 -07:00
Paulus Schoutsen
714b516176
aiohttp 2 ( #6835 )
...
* Upgrade aiohttp2
* Fix resource caching
* Fix helpers.aiohttp_client
* Lint
* Use static path for api error_log
* Fix ClientErrors import
* Remove not needed DisconnectError
* Remove releasing responses code
* Add timeout if stream starts non responding
* More async_aiohttp_proxy_stream cleanup
* Fix references to ClientError
* Fix fingerprinting
* Fix aiohttp stream tests
* Rename aiohttp_proxy_stream
* Remove impossible darksky test
* Fix sleepiq requests escaping mocker
* Lint
* Remove deprecated parameter
* Break up aiohttp_proxy_stream in 2 methods
* Lint
* Upgrade to aiohttp 2.0.4
* Convert connector close to a callback
* Fix static fingerprinted links
2017-03-30 00:50:53 -07:00
Paulus Schoutsen
bfe0aee468
Locative tests to use aiohttp test utils ( #6838 )
2017-03-29 22:19:58 -07:00