Use DEFAULT_SCAN_INTERVAL as update interval for glances (#93535)
Use default scan interval constant
This commit is contained in:
parent
6c66af4e41
commit
eb617e85f3
2 changed files with 4 additions and 4 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue