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

Classes

class  TwitchSensor
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

string ATTR_FOLLOW = "following"
 
string ATTR_FOLLOW_SINCE = "following_since"
 
string ATTR_FOLLOWING = "followers"
 
string ATTR_GAME = "game"
 
string ATTR_STARTED_AT = "started_at"
 
string ATTR_SUBSCRIPTION = "subscribed"
 
string ATTR_SUBSCRIPTION_GIFTED = "subscription_is_gifted"
 
string ATTR_SUBSCRIPTION_TIER = "subscription_tier"
 
string ATTR_TITLE = "title"
 
string ATTR_VIEWERS = "viewers"
 
int PARALLEL_UPDATES = 1
 
string STATE_OFFLINE = "offline"
 
string STATE_STREAMING = "streaming"
 

Detailed Description

Support for the Twitch stream status.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.twitch.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Initialize entries.

Definition at line 35 of file sensor.py.

Variable Documentation

◆ ATTR_FOLLOW

string homeassistant.components.twitch.sensor.ATTR_FOLLOW = "following"

Definition at line 23 of file sensor.py.

◆ ATTR_FOLLOW_SINCE

string homeassistant.components.twitch.sensor.ATTR_FOLLOW_SINCE = "following_since"

Definition at line 24 of file sensor.py.

◆ ATTR_FOLLOWING

string homeassistant.components.twitch.sensor.ATTR_FOLLOWING = "followers"

Definition at line 25 of file sensor.py.

◆ ATTR_GAME

string homeassistant.components.twitch.sensor.ATTR_GAME = "game"

Definition at line 18 of file sensor.py.

◆ ATTR_STARTED_AT

string homeassistant.components.twitch.sensor.ATTR_STARTED_AT = "started_at"

Definition at line 27 of file sensor.py.

◆ ATTR_SUBSCRIPTION

string homeassistant.components.twitch.sensor.ATTR_SUBSCRIPTION = "subscribed"

Definition at line 20 of file sensor.py.

◆ ATTR_SUBSCRIPTION_GIFTED

string homeassistant.components.twitch.sensor.ATTR_SUBSCRIPTION_GIFTED = "subscription_is_gifted"

Definition at line 21 of file sensor.py.

◆ ATTR_SUBSCRIPTION_TIER

string homeassistant.components.twitch.sensor.ATTR_SUBSCRIPTION_TIER = "subscription_tier"

Definition at line 22 of file sensor.py.

◆ ATTR_TITLE

string homeassistant.components.twitch.sensor.ATTR_TITLE = "title"

Definition at line 19 of file sensor.py.

◆ ATTR_VIEWERS

string homeassistant.components.twitch.sensor.ATTR_VIEWERS = "viewers"

Definition at line 26 of file sensor.py.

◆ PARALLEL_UPDATES

int homeassistant.components.twitch.sensor.PARALLEL_UPDATES = 1

Definition at line 32 of file sensor.py.

◆ STATE_OFFLINE

string homeassistant.components.twitch.sensor.STATE_OFFLINE = "offline"

Definition at line 29 of file sensor.py.

◆ STATE_STREAMING

string homeassistant.components.twitch.sensor.STATE_STREAMING = "streaming"

Definition at line 30 of file sensor.py.