Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.scrape.sensor Namespace Reference

Classes

class  ScrapeSensor
 

Functions

None async_setup_entry (HomeAssistant hass, ScrapeConfigEntry entry, AddEntitiesCallback async_add_entities)
 
None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
tuple TRIGGER_ENTITY_OPTIONS
 

Detailed Description

Support for getting data from websites with scraping.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.scrape.sensor.async_setup_entry ( HomeAssistant  hass,
ScrapeConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Scrape sensor entry.

Definition at line 92 of file sensor.py.

◆ async_setup_platform()

None homeassistant.components.scrape.sensor.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Web scrape sensor.

Definition at line 53 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.scrape.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 40 of file sensor.py.

◆ TRIGGER_ENTITY_OPTIONS

tuple homeassistant.components.scrape.sensor.TRIGGER_ENTITY_OPTIONS
Initial value:
1 = (
2  CONF_AVAILABILITY,
3  CONF_DEVICE_CLASS,
4  CONF_ICON,
5  CONF_PICTURE,
6  CONF_UNIQUE_ID,
7  CONF_STATE_CLASS,
8  CONF_UNIT_OF_MEASUREMENT,
9 )

Definition at line 42 of file sensor.py.