Fix aggressive scan intervals (#12885)
parent
95176b0666
commit
cf8907ed0f
|
@ -26,7 +26,7 @@ DEFAULT_HOST = 'localhost'
|
|||
DEFAULT_NAME = 'CONCORD232'
|
||||
DEFAULT_PORT = 5007
|
||||
|
||||
SCAN_INTERVAL = timedelta(seconds=1)
|
||||
SCAN_INTERVAL = timedelta(seconds=10)
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
vol.Optional(CONF_HOST, default=DEFAULT_HOST): cv.string,
|
||||
|
|
|
@ -27,7 +27,7 @@ DEFAULT_NAME = 'Alarm'
|
|||
DEFAULT_PORT = '5007'
|
||||
DEFAULT_SSL = False
|
||||
|
||||
SCAN_INTERVAL = datetime.timedelta(seconds=1)
|
||||
SCAN_INTERVAL = datetime.timedelta(seconds=10)
|
||||
|
||||
ZONE_TYPES_SCHEMA = vol.Schema({
|
||||
cv.positive_int: vol.In(DEVICE_CLASSES),
|
||||
|
|
|
@ -21,7 +21,7 @@ CONF_FOLDER_PATHS = 'folder'
|
|||
CONF_FILTER = 'filter'
|
||||
DEFAULT_FILTER = '*'
|
||||
|
||||
SCAN_INTERVAL = timedelta(seconds=1)
|
||||
SCAN_INTERVAL = timedelta(minutes=1)
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
vol.Required(CONF_FOLDER_PATHS): cv.isdir,
|
||||
|
|
|
@ -19,7 +19,7 @@ from homeassistant.const import CONF_NAME
|
|||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
SCAN_INTERVAL = datetime.timedelta(seconds=1)
|
||||
SCAN_INTERVAL = datetime.timedelta(seconds=30)
|
||||
ICON = 'mdi:chart-line'
|
||||
|
||||
CONF_UNIT = 'unit'
|
||||
|
|
Loading…
Reference in New Issue