Use DEFAULT_SCAN_INTERVAL as update interval for glances (#93535)

Use default scan interval constant
This commit is contained in:
Dominik 2023-05-25 16:51:57 +02:00 committed by GitHub
parent 6c66af4e41
commit eb617e85f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,6 @@
"""Constants for Glances component."""
from datetime import timedelta
import sys
DOMAIN = "glances"
@ -8,7 +9,7 @@ CONF_VERSION = "version"
DEFAULT_HOST = "localhost"
DEFAULT_PORT = 61208
DEFAULT_VERSION = 3
DEFAULT_SCAN_INTERVAL = 60
DEFAULT_SCAN_INTERVAL = timedelta(seconds=60)
SUPPORTED_VERSIONS = [2, 3]