Re-introduce default scan interval in Scrape sensor (#74455)
parent
c933a49c71
commit
c79b741971
|
@ -1,6 +1,7 @@
|
||||||
"""Support for getting data from websites with scraping."""
|
"""Support for getting data from websites with scraping."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
@ -39,6 +40,8 @@ from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
SCAN_INTERVAL = timedelta(minutes=10)
|
||||||
|
|
||||||
CONF_ATTR = "attribute"
|
CONF_ATTR = "attribute"
|
||||||
CONF_SELECT = "select"
|
CONF_SELECT = "select"
|
||||||
CONF_INDEX = "index"
|
CONF_INDEX = "index"
|
||||||
|
|
Loading…
Reference in New Issue