Commit graph

12 commits

Author SHA1 Message Date
Robert Svensson
ab7db5fbd0
UniFi - Use state to know if device is online () 2019-08-11 22:40:44 +02:00
Robert Svensson
c76531a366 Fix last seen not available on certain devices () 2019-08-06 14:55:36 -07:00
Robert Svensson
93dfd613aa
Options to not track wired clients () 2019-08-02 23:51:06 +02:00
Robert Svensson
39257164a9
UniFi - allow configuration to not track clients or devices ()
* Allow configuration to not track clients or devices
2019-08-02 10:13:00 +02:00
Robert Svensson
ceac35797e
Handle disabled devices () 2019-08-01 17:22:08 +02:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Robert Svensson
35900964cb
UniFi - Track devices () 2019-07-30 10:05:51 +02:00
Robert Svensson
891f19b43f
UniFi device tracker restore clients () 2019-07-29 23:13:04 +02:00
Robert Svensson
b6934f0cd0
UniFi block clients ()
* Allow blocking clients on UniFi networks
2019-07-25 16:56:56 +02:00
Robert Svensson
01b890f426
Merge UniFi device tracker to config entry ()
* Move device tracker to use config entry

* Remove monitored conditions attributes based on ADR0003

* Add support for import of device tracker config to be backwards compatible

* Remove unnecessary configuration options from device tracker

* Add component configuration support
2019-07-14 21:57:09 +02:00
Robert Svensson
4d4fd19f87
Replace pyunifi with aiounifi in UniFi device tracker ()
* Replace pyunifi with aiounifi

* Fix tests

* Add sslcontext

* Fix tests

* Fix import order
2019-06-02 18:24:13 +02:00
Penny Wood
f195ecca4b Consolidate all platforms that have tests ()
* Moved climate components with tests into platform dirs.

* Updated tests from climate component.

* Moved binary_sensor components with tests into platform dirs.

* Updated tests from binary_sensor component.

* Moved calendar components with tests into platform dirs.

* Updated tests from calendar component.

* Moved camera components with tests into platform dirs.

* Updated tests from camera component.

* Moved cover components with tests into platform dirs.

* Updated tests from cover component.

* Moved device_tracker components with tests into platform dirs.

* Updated tests from device_tracker component.

* Moved fan components with tests into platform dirs.

* Updated tests from fan component.

* Moved geo_location components with tests into platform dirs.

* Updated tests from geo_location component.

* Moved image_processing components with tests into platform dirs.

* Updated tests from image_processing component.

* Moved light components with tests into platform dirs.

* Updated tests from light component.

* Moved lock components with tests into platform dirs.

* Moved media_player components with tests into platform dirs.

* Updated tests from media_player component.

* Moved scene components with tests into platform dirs.

* Moved sensor components with tests into platform dirs.

* Updated tests from sensor component.

* Moved switch components with tests into platform dirs.

* Updated tests from sensor component.

* Moved vacuum components with tests into platform dirs.

* Updated tests from vacuum component.

* Moved weather components with tests into platform dirs.

* Fixed __init__.py files

* Fixes for stuff moved as part of this branch.

* Fix stuff needed to merge with balloob's branch.

* Formatting issues.

* Missing __init__.py files.

* Fix-ups

* Fixup

* Regenerated requirements.

* Linting errors fixed.

* Fixed more broken tests.

* Missing init files.

* Fix broken tests.

* More broken tests

* There seems to be a thread race condition.
I suspect the logger stuff is running in another thread, which means waiting until the aio loop is done is missing the log messages.
Used sleep instead because that allows the logger thread to run. I think the api_streams sensor might not be thread safe.

* Disabled tests, will remove sensor in 

* Updated coverage and codeowners.
2019-03-18 23:07:39 -07:00
Renamed from tests/components/device_tracker/test_unifi.py (Browse further)