J. Nick Koston
482cf261c0
Small speedups to unifi ( #122684 )
...
- Use a set for event_is_on to avoid linear search
- Avoid many duplicate property lookups
2024-07-27 10:19:53 +02:00
Sid
82a60fe8ad
Enable Ruff RSE ( #113695 )
2024-03-18 00:40:38 +01: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
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
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
d0d160f11c
Unifi add port forward control to switch platform ( #98309 )
2023-08-21 22:01:44 +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
Robert Svensson
02c27d8ad2
UniFi WLAN availability affected by WLAN enabled ( #98020 )
2023-08-09 18:52:35 +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
7f1fff12ef
Bump aiounifi to v45 ( #90250 )
...
* Bump aiounifi to v45
* Replace local TypeVar with library TypeVar
2023-03-25 00:27:16 +01:00
Robert Svensson
9ff45ca013
Allow loading UniFi entities on config options change ( #88762 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-06 16:08:14 +01:00
Marc Mueller
ab76b3ffb3
Update Union typing (3) [Py310] ( #86426 )
2023-01-23 10:05:56 +01:00
Robert Svensson
220ec1906c
Make sensor platform use common UniFi entity class ( #84818 )
...
fixes undefined
2023-01-06 12:50:32 +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
28eda7d1f0
Move add Update entities to UniFi controller ( #84477 )
2022-12-30 21:58:23 +01:00
Robert Svensson
9f399a1bbe
Only subscribe to specific UniFi object ID ( #84787 )
2022-12-29 10:51:16 -10:00
Robert Svensson
30df9e7706
Split out part of update sensor to a common UniFi entity class ( #84262 )
...
* Split out part of update sensor to a common entity class
* Mark methods abstract and/or raise NotImplementedError
* Resolve review comments
2022-12-22 13:17:17 +01:00