Skip to content

Commit

Permalink
Restore flume scan interval to match app (#86354)
Browse files Browse the repository at this point in the history
To stay under the API limit the device connection is now
only checked hourly and notifications are only checked every
5 minutes

fixes #82336
  • Loading branch information
bdraco committed Jan 21, 2023
1 parent a62b8a4 commit a49461a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions homeassistant/components/flume/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

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__)

Expand Down

0 comments on commit a49461a

Please sign in to comment.