Erik Montnemery
0c2485bc03
Freeze integration entity descriptions ( #105984 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
Robert Svensson
6271fe333d
Rework some UniFi unique IDs ( #104390 )
2023-11-24 11:18:55 +01:00
Aarni Koskela
ae4552eb3e
Improve Unifi switch entity unique ID naming function ( #104370 )
2023-11-22 20:02:16 +01:00
Robert Svensson
721c45b7a3
Rework UniFi client configuration ( #99483 )
2023-10-22 23:39:54 +02:00
Robert Svensson
d8445a79fc
UniFi streamline loading platforms ( #100071 )
...
* Streamline loading platforms
* Move platform registration logic to UnifiController class
2023-09-11 15:55:27 +02:00
Robert Svensson
71bf782b22
Improve UniFi PoE control by queueing commands together ( #99114 )
...
* Working draft without timer
* Clean up
Improve tests
* Use async_call_later
2023-08-27 16:58:48 +02:00
Robert Svensson
d0d160f11c
Unifi add port forward control to switch platform ( #98309 )
2023-08-21 22:01:44 +02:00
Robert Svensson
9e42451934
UniFi refactor using site data ( #98549 )
...
* Clean up
* Simplify admin verification
* Streamline using sites in config_flow
* Bump aiounifi
2023-08-18 22:44:59 +02:00
Chris
5b6a7edd8d
Add Unifi outlet switches for PDU devices ( #98320 )
...
Updates the Unifi outlet switching feature to support PDU devices
2023-08-13 20:06:12 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry ( #98149 )
...
* Move DeviceInfo from entity to device registry
* Update integrations
2023-08-10 22:04:26 -04:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma ( #98162 )
2023-08-10 14:27:03 +02:00
dougiteixeira
e99ba1b0da
Move async_client_device_info_fn to entity.py ( #97270 )
...
Move client device info
2023-07-27 10:21:22 +02:00
Robert Svensson
89069bb9b8
Add WLAN clients reporting to UniFi Sensor platform ( #97234 )
2023-07-26 08:00:17 +02:00
Robert Svensson
8d6c4e3306
Add controls to enable and disable a UniFi WLAN ( #97204 )
2023-07-25 14:01:57 +02:00
Robert Svensson
09109d093e
Allow UniFi control PoE passthrough properly ( #92028 )
2023-04-26 09:16:18 +02:00
Robert Svensson
a0b6da33ab
Strict typing of UniFi integration ( #90278 )
...
* Fix typing of UniFi controller
* Strict typing of unifi.__init__
* Strict typing of UniFi config_flow
* Strict typing of UniFi switch
* Strict typing UniFi sensor
* Strict typing UniFi device tracker
* Strict typing of UniFi
* Fix library issues related to typing
2023-03-26 09:57:13 +02:00
Robert Svensson
7f1fff12ef
Bump aiounifi to v45 ( #90250 )
...
* Bump aiounifi to v45
* Replace local TypeVar with library TypeVar
2023-03-25 00:27:16 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ( #87792 )
...
* Move EntityCategory to homeassistant.const
* Fix more imports
2023-02-09 20:15:37 +01:00
Robert Svensson
6718b40181
Make switch platform use common UniFi entity class ( #84458 )
...
* Make switch platform use common UniFi entity class
* Consolidate common functions between update and switch platforms
* Use controller.register_platform_add_entities
* Rename UnfiEntityLoader to UnifiUpdateEntityDescriptionMixin
2023-01-03 22:57:44 +01:00
Robert Svensson
188ce9bf49
Align implementation of the UniFi update platform with the UniFi switch platform ( #81821 )
...
* Use the same entity class as switches, but separately
Once all platforms are migrated I will consolidate them into one entity class
* Fix review comment
* Fix review comments
* Fix review comments
2022-12-11 16:41:58 +01:00
Robert Svensson
1331a3771a
Block client switches should rely only on events for state changes ( #81883 )
...
fixes undefined
2022-11-15 18:31:30 +01:00
Robert Svensson
23bed25e52
Remove old UniFi POE client implementation ( #81749 )
...
Remove all references to POE client implementation
2022-11-08 07:48:54 +01:00
Robert Svensson
3444d2af1a
UniFi switch entity description ( #81680 )
...
* Consolidate switch entities to one class
* Move turn on/off into UnifiSwitchEntity
* Add event subscription
Remove storing entity for everything but legacy poe switch
* Only one entity class
* Improve generics naming
* Rename loader to description
* Improve control_fn naming
* Move wrongfully placed method that should only react to dpi apps being emptied
* Improve different methods
* Minor renaming and sorting
* Mark callbacks properly
2022-11-08 07:38:31 +01:00
Robert Svensson
115a1ceea0
Rewrite UniFi block client switch ( #80969 )
...
* Refactor UniFi block client switch entities
* Use new switch loader
* Rename lambdas
* Use is_on rather than _attr_is_on when applicable
2022-10-25 22:36:51 +02:00
Robert Svensson
13e2bb1e22
Improve loading UniFi switch entities ( #80910 )
2022-10-25 19:26:56 +02:00
Robert Svensson
03bf37e12c
Refactor UniFi DPI switch entities ( #80761 )
...
* Refactor UniFi DPI switch entities
* Remove dpi presence from items_added
2022-10-23 22:42:24 +02:00
Robert Svensson
423f6aeec2
Improve UniFi PoE unique ID ( #80740 )
...
* Improve UniFi PoE unique ID
* Set available property on creation
2022-10-23 20:33:53 +02:00
Robert Svensson
0444dd71a6
Refactor UniFi outlet switches ( #80738 )
...
* Rewrite UniFi outlet switches
* Bump aiounifi to v41
* Remove devices from items_added input
2022-10-23 20:28:45 +02:00
Robert Svensson
d0ed4b1ff2
Replace constants with enums in UniFi ( #80637 )
...
Replace constants with enums
Fix bad imports
2022-10-20 00:10:01 +03:00
Robert Svensson
04cdcad7f8
Expose UniFi PoE ports as individual switches ( #80566 )
...
* Add simple PoE control switches
* Add basic tests
* Complete testing
* Dont use port.up as part of available
* Bump aiounifi to v40
2022-10-19 19:54:40 +02:00
Franck Nijhof
a8f1cc0d33
Remove unneeded guards from (async_)add_entities call ( #80471 )
2022-10-17 21:11:58 +02:00
Robert Svensson
bfd12730f2
Bump aiounifi to v35 ( #79040 )
...
* Update imports
Replace constants with enums
* Import new request objects
* Bump aiounifi to v35
2022-09-25 20:08:56 +02:00
epenet
3798d28bec
Improve entity type hints [u] ( #77884 )
2022-09-06 13:37:00 +02:00
Franck Nijhof
69cc6ab5f1
Clean up accessing entity_registry.async_get_registry helper via hass ( #72005 )
2022-05-17 16:40:45 +02:00
Robert Svensson
c25431750e
Bump dependency to v31 which makes has_relay more robust ( #65180 )
2022-01-29 15:34:14 +02:00
Robert Svensson
046f0a706f
Add outlets to UniFi switch platform ( #64859 )
...
* Add outlets to UniFi switch platform
* Outlet shouldn't have entity category set
2022-01-25 07:49:02 +01:00
Robert Svensson
76bfbbafe1
Update method names reflecting changes in UniFi library ( #64817 )
...
* Update method names
* Bump dependency to v30
2022-01-24 08:50:08 +01:00
Robert Svensson
43fe46c582
Use hass.async_create_task rather than hass.loop.create_task in deconz ( #64158 )
2022-01-15 11:13:26 +01:00
Robert Svensson
e37456fb36
Move DPI Group logic to UniFi switch platform ( #58761 )
...
* Library has normalized management of DPI apps and groups, move logic to UniFi integration
* Bump dependency to v29
* Use a generator instead of a list - Pylint
* Minor improvements
* Improve doc strings
2022-01-12 17:11:05 +01:00
epenet
e01b0a3625
Add setup type hints to sonos, unifi and wake_on_lan ( #62876 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-27 23:42:24 +01:00
Robert Hillis
a49683d09a
Use enums in unifi ( #62029 )
2021-12-16 12:53:01 +01:00
Christopher Bailey
5a72c9f7c3
Rename various usages of UniFi to better identify only UniFi Network ( #59568 )
...
* Renames various usages of UniFi to better indentify only UniFi Network
* Apply suggestions from code review
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
* Missed renames
* Updates more locations
* Removes instances of application/controller
* Missed a spot
* Updates all UniFi Controller instances
* Fixes typo
* Reverts changes to translations
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2021-11-26 22:44:49 +01:00
Ville Skyttä
39691faccc
Use DeviceEntryType in non-typechecked code too ( #58646 )
2021-11-23 10:04:33 +01:00
epenet
6391376d6f
Use DeviceInfo in unifi ( #58620 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-28 18:26:21 +02:00
Robert Svensson
47f6313e5b
Add entity category to UniFi sensors and switches ( #58484 )
2021-10-26 20:23:20 +02:00
Robert Hillis
488a636aec
Clean up unused loggers ( #57662 )
2021-10-14 10:03:38 -07:00
Milan Meulemans
29d72714f3
Replace dict with DeviceInfo ( #49950 )
...
* Replace dict with DeviceInfo
* Clean up
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-02 00:37:19 +02:00
Robert Svensson
63616a9e36
Use config_entry.on_unload rather than local listener implementation in UniFi ( #49496 )
2021-04-20 08:50:42 -10:00
Franck Nijhof
8d5ce53098
Merge of nested IF-IF cases - S-W ( #48372 )
2021-03-27 10:54:59 +01:00
Erik Montnemery
1fc8e32d86
Update integrations t-z to override extra_state_attributes() ( #47760 )
2021-03-11 20:16:26 +01:00