Update uiprotect to 3.1.1 (#120173)

This commit is contained in:
J. Nick Koston 2024-06-22 18:11:48 -05:00 committed by GitHub
parent 57e615aa36
commit ea0c93e3db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 123 additions and 87 deletions

View file

@ -5,9 +5,9 @@ from uiprotect.data import ModelType, Version
from homeassistant.const import Platform
DOMAIN = "unifiprotect"
# some UniFi OS consoles have an unknown rate limit on auth
# if rate limit is triggered a 401 is returned
AUTH_RETRIES = 11 # ~12 hours of retries with the last waiting ~6 hours
# If rate limit for 4.x or later a 429 is returned
# so we can use a lower value
AUTH_RETRIES = 2
ATTR_EVENT_SCORE = "event_score"
ATTR_EVENT_ID = "event_id"
@ -35,7 +35,6 @@ CONFIG_OPTIONS = [
DEFAULT_PORT = 443
DEFAULT_ATTRIBUTION = "Powered by UniFi Protect Server"
DEFAULT_BRAND = "Ubiquiti"
DEFAULT_SCAN_INTERVAL = 60
DEFAULT_VERIFY_SSL = False
DEFAULT_MAX_MEDIA = 1000