Add scan interval to scrape sensor (#74285)

pull/74291/head
Paulus Schoutsen 2022-07-01 00:40:05 -07:00 committed by GitHub
parent 7094b7e62f
commit c78c159d72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
"""Support for getting data from websites with scraping."""
from __future__ import annotations
from datetime import timedelta
import logging
from typing import Any
@ -44,6 +45,7 @@ from .const import CONF_INDEX, CONF_SELECT, DEFAULT_NAME, DEFAULT_VERIFY_SSL, DO
_LOGGER = logging.getLogger(__name__)
SCAN_INTERVAL = timedelta(minutes=10)
ICON = "mdi:web"
PLATFORM_SCHEMA = PARENT_PLATFORM_SCHEMA.extend(