Robert Svensson
fa815234be
Make UniFi use runtime data ( #117457 )
2024-05-14 21:04:26 +02:00
Robert Svensson
8bf3c87336
Breakout heartbeat monitor and poe command queue in UniFi ( #112529 )
...
* Split out entity helper functionality to own class
* Split out heartbeat to own class
* Break out poe command
* Make more parts private
* Make more things private and simplify naming
* Sort initialize
* Fix ruff
2024-04-23 21:45:20 +02:00
Robert Svensson
19e54debba
Unifi more polish on entity description ( #112281 )
...
* Make has_entity_name default value True
* Remove previously missed event_is_on and event_to_subscribe
* Provide default value for allowed_fn and supported_fn
* Provide default value for name_fn
* Provide default value for available_fn
* Add doc strings to required functions
* Fix some missed renames from variations of controller to hub
2024-03-09 09:19:38 +01:00
Robert Svensson
f2879e6f39
Break out UniFi platform registration to its own class ( #112514 )
2024-03-09 09:18:23 +01:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] ( #112705 )
2024-03-08 10:35:23 -05:00
Robert Svensson
7c9891fff9
Break out UniFi config handling to own class ( #111325 )
2024-03-05 21:36:26 +01:00
Robert Svensson
99414d8b85
Streamline UniFi entity descriptions ( #112136 )
...
* Use kw_only=True to get rid of Mixins
* Clarify which inputs are optional and make them have default values
Add doc strings to optional inputs
2024-03-04 00:00:17 -05:00
Robert Svensson
efc89cd34f
Unifi websocket manager ( #111041 )
...
* Move hub into .hub.hub
* Move websocket to own module
* Minor shuffle
2024-02-24 16:20:59 -05:00
Robert Svensson
2f026ca963
Unifi rename controller to hub ( #110976 )
...
* Rename controller.py to hub.py
* Rename UniFiController to UnifiHub
* Rename controller instances into hub
* Rename controller to hub in tests
* Rename aiounifi Controller references to api
* Update strings
* Rename test_controller test_hub
* Narrow scope of test_remove_sensors
2024-02-20 08:51:22 +01:00
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