Restore flume scan interval to match app (#86354)

To stay under the API limit the device connection is now
only checked hourly and notifications are only checked every
5 minutes

fixes #82336
pull/85842/head
J. Nick Koston 2023-01-21 12:00:12 -10:00 committed by GitHub
parent a62b8a4f5b
commit a49461a040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -15,10 +15,10 @@ PLATFORMS = [
DEFAULT_NAME = "Flume Sensor"
# Flume API limits individual endpoints to 120 queries per hour
NOTIFICATION_SCAN_INTERVAL = timedelta(minutes=1)
DEVICE_SCAN_INTERVAL = timedelta(minutes=5)
DEVICE_CONNECTION_SCAN_INTERVAL = timedelta(minutes=1)
# Flume API limits queries to 120 per hour
NOTIFICATION_SCAN_INTERVAL = timedelta(minutes=5)
DEVICE_SCAN_INTERVAL = timedelta(minutes=1)
DEVICE_CONNECTION_SCAN_INTERVAL = timedelta(minutes=60)
_LOGGER = logging.getLogger(__package__)