Erik Montnemery
066e921a8b
Rename SwitchDevice to SwitchEntity ( #34673 )
2020-04-26 18:50:37 +02:00
Robert Svensson
b578a76efa
UniFi - Move some preloading of unavailable clients earlier in setup phase ( #34599 )
...
Improve readability of setting up switch platform
2020-04-23 21:29:38 +02:00
Robert Svensson
c3689d7416
UniFi - Store controller in config_entry.entry_id ( #34553 )
...
* Store controller in config_entry.entry_id
* Clean up imports
2020-04-23 16:48:24 +02:00
Robert Svensson
f12bd7ad99
UniFi - Logs spam with not adding disabled entity ( #34479 )
...
* Proposed solution, unfortunately this makes the implementation less pretty
* Clarify why mac is registered in init
2020-04-21 06:17:14 +02:00
Robert Svensson
e5a861dc90
UniFi - refactor entity management ( #34367 )
...
* Move removal of sensor entities into a base class
* Fix martins comments on sensors
* Reflect sensor changes on device_tracker platform
* Reflect sensor changes on switch platform
* Improve layering
* Make sure to clean up entity and device registry when removing entities
* Fix martins comments
2020-04-19 21:30:06 +02:00
Robert Svensson
374fe47809
UniFi - Support automatic removal of clients ( #34307 )
2020-04-16 15:08:53 -07:00
Robert Svensson
314bc07cee
UniFi - Make POE control switches configurable ( #32781 )
...
* Allow control whether POE switches are to be created or not
* Fix options flow and test
2020-04-02 17:53:33 +02:00
Robert Svensson
16d7f84be7
UniFi - Fix block functionality ( #32625 )
...
* Fix block functionality
* Remove unrelated changes
* Bump dependency to v15
* Run requirement script
2020-03-10 18:27:25 +01:00
Paulus Schoutsen
d216c1f2ac
UniFi - Add block network access control to config option ( #32004 )
...
* Add block network access control to config option
* Clean up
2020-03-04 21:55:56 -08:00
Robert Svensson
1edaae34c5
UniFi - Log better information than a backtrace when poor switch data is involved ( #31382 )
2020-02-01 20:48:23 +01:00
Robert Svensson
958a867c11
UniFi integration move to push messaging ( #31086 )
...
* Rewrite UniFi integration to use push messaging
* Add signalling for new clients/devices
* Update list of known wireless clients when we get events of them connecting
* Reconnection logic for websocket
* Fix failing tests
* Bump requirement to v12
* Add new tests
* Update homeassistant/components/unifi/controller.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
2020-01-31 20:23:25 +01:00
Robert Svensson
ff5f890e79
Fix problem with restoring POE control ( #30597 )
2020-01-08 22:33:51 +01:00
Robert Svensson
856dd63680
Add more logging to help future debug situations ( #29800 )
2019-12-11 15:45:21 +01:00
Robert Svensson
47e5142ddb
UniFi - Handle disabled switches ( #29824 )
2019-12-10 20:04:48 +01:00
Bas Nijholt
2da3848f89
Sort imports according to PEP8 for unifi ( #29656 )
2019-12-09 12:19:33 +01:00
Robert Svensson
6565c17828
UniFi - Improve controller tests ( #27261 )
...
* Improve controller tests and harmonize setup_unifi_integration to one
* Store listeners to dispatchers to be used during reset
2019-10-07 21:55:35 +02:00
Robert Svensson
c7c88b2b68
UniFi - Bandwidth sensors ( #27229 )
...
* First draft of UniFi bandwidth sensors
* Clean up
* Add tests for sensors
2019-10-06 08:17:40 -07:00
Robert Svensson
09c5b9feb3
UniFi - Try to handle when UniFi erroneously marks offline client as wired ( #26960 )
...
* Add controls to catch when client goes offline and UniFi bug marks client as wired
* Device trackers shouldn't jump between going away and home
* POE control shouldn't add normally wireless clients as POE control switches
2019-10-02 21:43:14 +02:00
Franck Nijhof
ef0e9431b6
Use literal string interpolation in integrations T-W (f-strings) ( #26394 )
2019-09-03 21:12:51 +02:00
Robert Svensson
b5426761f4
UniFi - Simplify getting controller from config entry ( #26335 )
...
* Simplify getting controller from config entry
* Lint ignore no longer needed
* Fix tests
2019-09-01 17:57:25 +02:00
Robert Svensson
d9ef92f6d2
UniFi - use entity registry disabled_by to control available entities ( #26141 )
...
* Move ignoring logic to entity registry enabled default
* Handle config to option import better
* Properly enable and disable entity registry entries on changes from config entry options
* Fix balloobs comments
* Fix some tests
* Fix tests
* Simplify updating disable on entities
* Simplify device tracker update function
* Local entity disabled replaced on rebase
* Only alter entities with changed options
* Proper tracking of changed options
* Back to straightforward updating of disabled
2019-08-31 22:04:04 +02:00
Robert Svensson
588eac82c7
UniFi config entry options ( #26113 )
...
Introduce config entry options for Unifi integration
Allow configuration.yaml options to be imported to new options
2019-08-21 22:22:42 +02:00
Robert Svensson
576291779e
UniFi - reverse connectivity logic ( #25691 )
...
* Make connectivity control in line with other implementations
2019-08-04 16:57:36 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Robert Svensson
dc722adbb5
UniFi POE control restore clients ( #25558 )
...
* Restore POE controls on restart
2019-07-29 19:48:38 +02:00
Robert Svensson
b6934f0cd0
UniFi block clients ( #25478 )
...
* Allow blocking clients on UniFi networks
2019-07-25 16:56:56 +02:00
Robert Svensson
01b890f426
Merge UniFi device tracker to config entry ( #24367 )
...
* 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
e9b0f54a43
UniFi simplify update ( #24304 )
2019-06-15 17:38:22 +02:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd30889bad5adc9a4fd60059d05ba5a7.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2cc53cbe6954f940062b18ae34b05621.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07:00
Fabian Affolter
127c55e0c1
Update file header ( #21023 )
...
* Update file header
* Update file header
* Update file header
* Update file header
* Update file header
* Fix lint issues
2019-02-13 21:21:14 +01:00
Paulus Schoutsen
ec57db78b5
Consolidate config flow components ( #20635 )
...
* Consolidate config flow components
* Fix tests
* Fix tests
* Put unifi back
* Fix reqs
* Update coveragerc
2019-02-01 15:45:44 -08:00