* Create new config parameter for default character encoding if no character encoding is declared * Changes suggested by gjohansson-ST * Added config flow for scape * Removed "character" * Change to create_async_httpx_client * Remove CONF_ENCODING from Scrape SENSOR_SCHEMA * Debug scrape test
18 lines
398 B
Python
18 lines
398 B
Python
"""Constants for Scrape integration."""
|
|
from __future__ import annotations
|
|
|
|
from datetime import timedelta
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
DOMAIN = "scrape"
|
|
DEFAULT_ENCODING = "UTF-8"
|
|
DEFAULT_NAME = "Web scrape"
|
|
DEFAULT_VERIFY_SSL = True
|
|
DEFAULT_SCAN_INTERVAL = timedelta(minutes=10)
|
|
|
|
PLATFORMS = [Platform.SENSOR]
|
|
|
|
CONF_ENCODING = "encoding"
|
|
CONF_SELECT = "select"
|
|
CONF_INDEX = "index"
|