Commit graph

324 commits

Author SHA1 Message Date
J. Nick Koston
2cffb4df6d
Bump pyunifiprotect to 4.21.0 (#103832)
changelog: https://github.com/AngellusMortis/pyunifiprotect/compare/v4.20.0...v4.21.0
2023-11-12 09:33:48 +01:00
Erik Montnemery
df73850f56
Move definition of attributes excluded from history to entity classes (#100430)
* Move definition of attributes excluded from history to entity classes

* Revert change which should be in a follow-up PR

* Fix sun unrecorded attributes

* Fix input_select unrecorded attributes
2023-09-21 15:02:47 +02:00
J. Nick Koston
8a98a0e830
Avoid writing unifiprotect state when nothing has changed (#100439) 2023-09-16 09:57:43 -05:00
Erik Montnemery
d1afcd773f
Revert "Cache entity properties that are never expected to change in the base class" (#100422)
Revert "Cache entity properties that are never expected to change in the base class (#95315)"

This reverts commit 042776ebb8.
2023-09-15 11:25:24 +02:00
J. Nick Koston
042776ebb8
Cache entity properties that are never expected to change in the base class (#95315) 2023-09-14 17:48:48 -05:00
J. Nick Koston
64fde640ca
Bump pyunifiprotect to 4.20.0 (#100092) 2023-09-11 08:08:19 -05: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
J. Nick Koston
70b1083c8f
Bump pyunifiprotect to 4.10.6 (#97240) 2023-07-26 08:06:24 +02:00
J. Nick Koston
660c95d784
Pre-split unifiprotect nested attribute lookups (#96862)
* Pre-split unifiprotect nested attribute lookups

replaces and closes #96631

* Pre-split unifiprotect nested attribute lookups

replaces and closes #96631

* comments
2023-07-20 09:59:17 +02:00
J. Nick Koston
194d4e4f66
Guard type checking assertions in unifiprotect (#96721) 2023-07-16 12:11:35 -10:00
J. Nick Koston
f2556df7db
Reduce unifiprotect update overhead (#96626) 2023-07-16 06:24:27 -10:00
Christopher Bailey
1865cd0805
Bump unifiprotect to 4.10.5 (#96486) 2023-07-13 09:30:55 -10:00
Erik Montnemery
7539cf25be
Don't require passing identifiers to DeviceRegistry.async_get_device (#96479)
* Require keyword arguments to DeviceRegistry.async_get_device

* Update tests

* Update tests

* Don't enforce keyword arguments
2023-07-13 13:39:25 -04:00
Paulus Schoutsen
7859be6481
Add deduplicate translations script (#96384)
* Add deduplicate script

* Fix forecast_solar incorrect key with space

* Fix utf-8

* Do not create references to other arbitrary other integrations

* Add commented code to only allow applying to referencing integrations

* Tweak

* Bug fix

* Add command line arg for limit reference

* never suggest to update common keys

* Output of script

* Apply suggestions from code review

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04:00
Franck Nijhof
4edec69637
Migrate integration services (T-V) to support translations (#96379) 2023-07-12 07:37:13 +02:00
Erik Montnemery
2257e7454a
Remove unreferenced issues (#96264)
* Remove unreferenced issues

* Remove outdated tests
2023-07-11 14:15:16 -04:00
Erik Montnemery
d1cfb6e1a8
Remove unreferenced issues (#95976) 2023-07-07 18:19:11 +02:00
J. Nick Koston
90386bc036
Reduce overhead to fetch unifiprotect attributes (#94976) 2023-06-21 21:41:06 +02:00
J. Nick Koston
e24c2ae55c
Avoid fetching both unifiprotect RTSP urls (#94978) 2023-06-21 15:14:57 +02:00
Erik Montnemery
2406b235b4
Name unnamed binary sensors by their device class (#92940)
* Name unnamed binary sensors by their device class

* Update type annotations

* Fix loading of entity component translations

* Add test

* Update integrations

* Set abode and rfxtrx binary_sensor name to None

* Revert changes in homekit_controller
2023-06-13 19:48:54 +02:00
Christopher Bailey
fd43687833
Bump unifiprotect to 4.10.3 (#94416)
* Bump unifiprotect to 4.10.3

* Reqs
2023-06-11 10:22:12 -04:00
Christopher Bailey
c697731657
Bump unifiprotect to 4.10.2 (#94263) 2023-06-08 11:08:52 -04:00
Christopher Bailey
7f4d62c80f
Bump unifiprotect to 4.10.1 (#94141) 2023-06-07 11:15:03 +02: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
Erik Montnemery
a1a055f618
Add config entry only config schema to integrations s-z (#93910) 2023-06-01 20:05:11 +02:00
J. Nick Koston
5365d57bef
Bump pyunifiprotect to 4.9.1 (#93931) 2023-06-01 19:20:32 +02:00
J. Nick Koston
17fadbcf4a
Reduce overhead to update unifiprotect entity (#93725) 2023-05-29 20:39:34 +02:00
Erik Montnemery
a71c097aeb
Revert "Allow setting an entity's name by its device class" (#93539) 2023-05-25 17:20:54 +02:00
J. Nick Koston
f8d918ca4a
Small speedup to unifiprotect attribute lookups (#93507) 2023-05-25 07:51:45 +02:00
J. Nick Koston
b400c53159
Bump pyunifiprotect to 4.9.0 (#93106)
changelog: https://github.com/AngellusMortis/pyunifiprotect/compare/v4.8.3...v4.9.0
2023-05-15 22:26:29 +03:00
Erik Montnemery
67c1051305
Allow setting an entity's name by its device class (#90767)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-05-09 18:55:55 +02:00
J. Nick Koston
11131070ab
Bump pyunifiprotect to 4.8.3 (#92251) 2023-04-29 18:59:44 +02:00
Christopher Bailey
512e03746b
Bump pyunifiprotect to 4.8.2 (#91861) 2023-04-22 18:44:27 +02:00
epenet
2df5d34374
Fix lingering timer in unifiprotect discovery (#91695) 2023-04-19 21:02:37 +02:00
Christopher Bailey
5dcc4d49c8
Bump unifiprotect to 4.8.1 (#91522) 2023-04-16 17:50:06 -10:00
Christopher Bailey
fdc80e14e6
Remove deprecated set_doorbell_message UniFi Protect service (#91523)
* Removes deprecated service

* Linting

* Linting

* More cleanup

* Linting
2023-04-16 17:30:41 -10:00
epenet
d173590477
Remove combined translations in integrations (#91337)
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-04-15 15:51:04 +02:00
epenet
4a3c0cd0a8
Adjust docstrings for ruff D404 (#89077) 2023-03-03 11:26:13 +01:00
epenet
3e8716b37e
Adjust AddEntitiesCallback import (part 2) (#88873) 2023-02-28 22:01:36 -05:00
J. Nick Koston
480a495239
Fix unifiprotect discovery running at shutdown (#88802)
* Fix unifiprotect discovery running at shutdown

Move the discovery start into `async_setup` so we only
start discovery once reguardless of how many config entries
for unifiprotect they have (or how many times they reload).

Always make discovery a background task so it does not get
to block shutdown

* missing decorator
2023-02-26 21:08:20 -05:00
J. Nick Koston
35adb2f7e8
Remove previously deprecated Detected Object from unifiprotect (#85656) 2023-02-20 22:14:01 +01:00
J. Nick Koston
9876dd804e
Exclude event_id and event_score from being recorded in unifiprotect (#88387) 2023-02-20 14:09:56 +01:00
Paulus Schoutsen
a5170340a3
Fix dangling task for unifiprotect (#88300) 2023-02-16 22:05:06 -06:00
J. Nick Koston
80b25d6f40
Bump pyunifiprotect to 4.7.0 for python 3.11 (#88130) 2023-02-14 15:29:34 -06:00
J. Nick Koston
3e8a6cb3b7
Fix unifiprotect with python 3.11 (#88101)
There are some breaking changes to Enum https://blog.pecar.me/python-enum

needs https://github.com/AngellusMortis/pyunifiprotect/pull/263 but
does not need to be in this PR
2023-02-14 11:26:14 -05: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
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
Franck Nijhof
fcb612cd6f
Collection of code styling tweaks (#87344) 2023-02-03 23:51:27 +01:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00