Commit graph

542 commits

Author SHA1 Message Date
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
Erik Montnemery
b0b1d8143f
Sort manifests 10 (#87031) 2023-02-08 20:41:50 +01:00
Franck Nijhof
939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
GitHub Action
f475446ebf [ci skip] Translation update 2023-02-06 00:23:07 +00:00
Robert Hillis
d5b2062774
Disable uptime sensor by default in Unifi (#87484)
Disable Uptime sensor by default in Unifi
2023-02-05 19:28:28 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
epenet
2b4796b9ac
Improve typing in unifi services (#87072) 2023-02-01 11:45:04 +01:00
Marc Mueller
ab76b3ffb3
Update Union typing (3) [Py310] (#86426) 2023-01-23 10:05:56 +01:00
Robert Svensson
7729a5cf8a
Bump aiounifi to v44 (#86381)
fixes undefined
2023-01-22 19:34:48 +01:00
GitHub Action
77f9548e51 [ci skip] Translation update 2023-01-15 00:25:52 +00: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
a75bad3a83
Move add Device tracker entities to UniFi controller (#84883) 2023-01-03 20:59:28 +01:00
GitHub Action
6220804639 [ci skip] Translation update 2023-01-02 00:23:28 +00:00
Robert Svensson
f56f391f81
Remove legacy constant from UniFi (#84947) 2023-01-01 20:03:14 +01:00
Robert Svensson
60de2a82c7
Make device tracker use common UniFi entity class (#84786) 2022-12-30 22:27:45 +01:00
Robert Svensson
28eda7d1f0
Move add Update entities to UniFi controller (#84477) 2022-12-30 21:58:23 +01:00
Robert Svensson
7abff358a5
Bump aiounifi to v43 (#84864) 2022-12-30 21:17:47 +01:00
Robert Svensson
e33cea9ff7
Add PoE power sensor to UniFi integration (#84314)
* Add PoE power sensor to UniFi integration

* Add unit of power

* Only update state if value has changed

* Remove stale print

* Subscribe to specific sensor to remove unnecessary state changes

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-12-29 22:55:00 +01:00
Robert Svensson
9f399a1bbe
Only subscribe to specific UniFi object ID (#84787) 2022-12-29 10:51:16 -10:00
GitHub Action
b3ab0a0199 [ci skip] Translation update 2022-12-29 00:23:20 +00:00
Robert Svensson
de5c7b0414
Rework UniFi device tracker to utilizing entity description (#81979)
* Rework UniFi device tracker to utilizing entity description

* Use bound

* Fix review comments from other PR
2022-12-28 22:29:11 +01: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
GitHub Action
cfa08c5229 [ci skip] Translation update 2022-12-15 00:24:38 +00:00
Robert Svensson
360f36eb71
Unifi use entity description with sensors (#81930)
* Move bandwidth sensors

* Add uptime sensor

* Use bound

* Fix review comments from other PR
2022-12-14 20:54:33 +01:00
epenet
69bc95a715
Use DATA_SIZE device class in integrations (#83895) 2022-12-13 10:17:56 +01:00
GitHub Action
b9753a9f92 [ci skip] Translation update 2022-12-13 00:27:47 +00:00
Brandon Rothweiler
f24f0c2954
Fix incorrect usage of 'setup' vs 'set up' (#83774) 2022-12-12 11:40:00 +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
GitHub Action
f25017313a [ci skip] Translation update 2022-12-09 00:24:29 +00:00
GitHub Action
1f3e5fb4fc [ci skip] Translation update 2022-12-07 00:24:08 +00:00
GitHub Action
3ab9a14ce7 [ci skip] Translation update 2022-12-06 00:21:31 +00:00
GitHub Action
c9c2886b26 [ci skip] Translation update 2022-12-02 00:23:57 +00:00
Robert Svensson
182c4bbc05
Bump aiounifi to v42 (#82995) 2022-11-30 19:04:14 +01:00
GitHub Action
230b50d099 [ci skip] Translation update 2022-11-29 00:26:01 +00:00
GitHub Action
f3b3193f7a [ci skip] Translation update 2022-11-25 00:24:19 +00:00
GitHub Action
0be2a3f182 [ci skip] Translation update 2022-11-22 00:26:32 +00:00
GitHub Action
fe5246fb6f [ci skip] Translation update 2022-11-19 00:26:11 +00:00
Robert Svensson
af6338343e
Remove (2021) backwards supporting functionality from UniFi (#81981) 2022-11-16 12:49:10 +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
GitHub Action
c7fc51cfa5 [ci skip] Translation update 2022-11-04 00:29:52 +00:00
epenet
2214fff3b4
Cleanup device_tracker imports (#81139) 2022-10-28 17:40:37 +02: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
c6e7b9cc99
Refactor UniFi upgrade entities (#80752)
* Refactor UniFi upgrade entities

* Enable type check for UniFi update platform
2022-10-23 19:33:08 +02:00