Commit graph

66 commits

Author SHA1 Message Date
epenet
de88068c66
Merge unifiprotect entity and models modules (#126532) 2024-09-23 14:30:26 +02:00
J. Nick Koston
d3f424227f
Cleanup unifiprotect entity classes (#121184) 2024-07-05 09:31:31 +02:00
J. Nick Koston
47587ee3fb
Fix race against is_smart_detected in unifiprotect (#120133) 2024-06-21 17:11:28 -05:00
J. Nick Koston
c3ab72a1f9
Fix comparing end of event in unifiprotect (#120124) 2024-06-21 14:48:09 -05:00
J. Nick Koston
68462b014c
Fix unifiprotect smart detection when end is set (#120027) 2024-06-20 22:03:07 -05:00
J. Nick Koston
85ca6f15be
Add some suggested units to unifiprotect sensors (#119790) 2024-06-16 15:04:28 -05:00
J. Nick Koston
151b3b3b0a
Reduce duplicate code in unifiprotect entities (#119779) 2024-06-16 14:14:59 -05:00
J. Nick Koston
03027893ff
Fix precision for unifiprotect sensors (#119781) 2024-06-16 13:54:58 -05:00
J. Nick Koston
59ca5b04fa
Migrate unifiprotect to use has_entity_name (#119759) 2024-06-16 09:00:14 -05:00
J. Nick Koston
c519e12042
Cleanup unifiprotect entity model (#119746)
* Small cleanups to unifiprotect

* Small cleanups to unifiprotect

* Small cleanups to unifiprotect

* Small cleanups to unifiprotect

* tweak

* comments

* comments

* stale docstrings

* missed one

* remove dead code

* remove dead code

* remove dead code

* remove dead code

* cleanup
2024-06-15 22:02:03 -04:00
J. Nick Koston
c0ff2d866f
Reduce code needed to check unifiprotect attrs (#119706)
* Reduce code needed to check unifiprotect attrs

* Apply suggestions from code review

* Update homeassistant/components/unifiprotect/manifest.json

* Apply suggestions from code review

* revert

* adjust

* tweak

* make mypy happy
2024-06-14 21:29:18 +02:00
J. Nick Koston
6d31991021
Reduce duplicate code in unifiprotect (#119624) 2024-06-13 11:44:29 -05:00
J. Nick Koston
a586e7fb72
Remove useless delegation in unifiprotect (#119514) 2024-06-12 22:23:18 +02:00
J. Nick Koston
4fb8202de1
Refactor adding entities to unifiprotect (#119512) 2024-06-12 18:11:59 +02:00
J. Nick Koston
db3029dc5f
Remove unreachable sensor code in unifiprotect (#119501) 2024-06-12 18:07:20 +02:00
J. Nick Koston
3f188b7e27
Migrate unifiprotect to use entry.runtime_data (#119507) 2024-06-12 17:49:18 +02:00
J. Nick Koston
d657feafa6
Switch unifiprotect lib to use uiprotect (#119243) 2024-06-09 18:25:39 -05:00
Sid
b456d97e65
Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] (#112705) 2024-03-08 10:35:23 -05:00
J. Nick Koston
b1cbf9840a
Make adding new device in unifiprotect callback functions (#111054) 2024-02-20 23:47:31 -06:00
J. Nick Koston
bef596d0dd
Migrate unifiprotect descriptions to be kw_only (#107832) 2024-01-12 09:33:33 +01:00
Christopher Bailey
99e25d94c0
Rework events for UniFi Protect (#107771) 2024-01-10 19:02:16 -10:00
Christopher Bailey
ec8a33b52d
Rework state change detection for UniFi Protect entities (#107766) 2024-01-10 18:06:45 -10:00
Christopher Bailey
ce54a1259a
Bump pyunifiprotect to v4.22.5 (#106781) 2023-12-31 09:26:21 -10: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
J. Nick Koston
8a98a0e830
Avoid writing unifiprotect state when nothing has changed (#100439) 2023-09-16 09:57:43 -05:00
J. Nick Koston
f2556df7db
Reduce unifiprotect update overhead (#96626) 2023-07-16 06:24:27 -10:00
Christopher Bailey
9b6a9147c7
Fix multiple smart detects firing at once for UniFi Protect (#94133)
* Fix multiple smart detects firing at once

* Tweak

* Clean up logging. Linting

* Linting
2023-06-06 20:07:21 -04:00
epenet
4a3c0cd0a8
Adjust docstrings for ruff D404 (#89077) 2023-03-03 11:26:13 +01:00
J. Nick Koston
35adb2f7e8
Remove previously deprecated Detected Object from unifiprotect (#85656) 2023-02-20 22:14:01 +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
Franck Nijhof
fcb612cd6f
Collection of code styling tweaks (#87344) 2023-02-03 23:51:27 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
Christopher Bailey
818253ced4
Bump pyunifiprotect to 4.6.1 (#85547) 2023-01-09 12:00:21 -10:00
epenet
79d3d4ceae
Use UnitOfTemperature in integrations (t-z) (#84309) 2022-12-20 18:50:39 +01:00
epenet
fba13dcc90
Use UnitOfTime in integrations (t-z) (#84291) 2022-12-20 12:30:14 +01:00
epenet
0184aadb09
Use UnitOfElectricPotential in integrations (#84044) 2022-12-15 13:59:21 +01:00
epenet
69bc95a715
Use DATA_SIZE device class in integrations (#83895) 2022-12-13 10:17:56 +01:00
Christopher Bailey
1f6e2511f8
Fix event sensor for UniFi Protect (#83663)
* Fix event sensor for UniFi Protect

* Linting

* Adds no cover

* Clean up check

* Linting
2022-12-11 13:32:26 -05:00
epenet
535aba10ee
Use DataRate unit and device class in integrations (#83610) 2022-12-10 11:41:44 +01:00
Franck Nijhof
171bed7637
Migrate UniFi Protect translations (#83338)
* Migrate UniFi Protect translations

* Move key
2022-12-05 20:10:36 +01:00
Christopher Bailey
ee7022dc67
Update UniFi Protect ring entity to use event entity (#83270) 2022-12-04 17:06:55 -10:00
Christopher Bailey
6fb9bdec93
Assorted fixes for UniFi Protect (#83032) 2022-12-01 16:37:44 -05:00
Christopher Bailey
596016c2ac
Add new features from new UniFi Protect (#82892)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-11-28 23:44:31 -10:00
Christopher Bailey
b842e26d36
Split UniFi Protect object sensor into multiple (#82595) 2022-11-28 09:07:53 -10:00
Christopher Bailey
d29be2390b
Add new features from UniFi Protect 2.2.1-beta5 (#77391) 2022-08-28 12:31:07 -05:00
Christopher Bailey
1fb8fbf5de
Refactor and unify device fetching for UniFi Protect (#77341) 2022-08-26 06:46:11 -05:00
Christopher Bailey
ce3502291d
Add better support for UniFi Protect Cameras with Removable Lens (#76942) 2022-08-22 14:58:31 -10:00
Christopher Bailey
54320ff134
UniFi Protect bugfixes (#74156) 2022-06-28 22:00:26 -05:00
Christopher Bailey
b9c636ba4e
Automatically add newly added devices for UniFi Protect (#73879) 2022-06-27 16:03:25 -05:00