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

Classes

class  TravisCISensor
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_BRANCH = "branch"
 
string CONF_REPOSITORY = "repository"
 
string DEFAULT_BRANCH_NAME = "master"
 
string NOTIFICATION_ID = "travisci"
 
string NOTIFICATION_TITLE = "Travis CI Sensor Setup"
 
 PLATFORM_SCHEMA
 
 SCAN_INTERVAL = timedelta(seconds=30)
 

Detailed Description

Component providing HA sensor support for Travis CI framework.

Function Documentation

◆ setup_platform()

None homeassistant.components.travisci.sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Travis CI sensor.

Definition at line 90 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 29 of file sensor.py.

◆ CONF_BRANCH

string homeassistant.components.travisci.sensor.CONF_BRANCH = "branch"

Definition at line 31 of file sensor.py.

◆ CONF_REPOSITORY

string homeassistant.components.travisci.sensor.CONF_REPOSITORY = "repository"

Definition at line 32 of file sensor.py.

◆ DEFAULT_BRANCH_NAME

string homeassistant.components.travisci.sensor.DEFAULT_BRANCH_NAME = "master"

Definition at line 34 of file sensor.py.

◆ NOTIFICATION_ID

string homeassistant.components.travisci.sensor.NOTIFICATION_ID = "travisci"

Definition at line 74 of file sensor.py.

◆ NOTIFICATION_TITLE

string homeassistant.components.travisci.sensor.NOTIFICATION_TITLE = "Travis CI Sensor Setup"

Definition at line 75 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.travisci.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_API_KEY): cv.string,
4  vol.Required(CONF_MONITORED_CONDITIONS, default=SENSOR_KEYS): vol.All(
5  cv.ensure_list, [vol.In(SENSOR_KEYS)]
6  ),
7  vol.Required(CONF_BRANCH, default=DEFAULT_BRANCH_NAME): cv.string,
8  vol.Optional(CONF_REPOSITORY, default=[]): vol.All(cv.ensure_list, [cv.string]),
9  vol.Optional(CONF_SCAN_INTERVAL, default=SCAN_INTERVAL): cv.time_period,
10  }
11 )

Definition at line 77 of file sensor.py.

◆ SCAN_INTERVAL

homeassistant.components.travisci.sensor.SCAN_INTERVAL = timedelta(seconds=30)

Definition at line 36 of file sensor.py.