Update uiprotect to 3.1.1 (#120173)
This commit is contained in:
parent
57e615aa36
commit
ea0c93e3db
11 changed files with 123 additions and 87 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue