hass-core/homeassistant/components/scrape/const.py
Olivier Ouellet 1c465b5ad0
Add encoding configuration setting to REST and Scape (#90254)
* 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
2023-03-28 12:42:31 +02:00

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"