Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Const for Twitch."""
2 
3 import logging
4 
5 from twitchAPI.twitch import AuthScope
6 
7 from homeassistant.const import Platform
8 
9 LOGGER = logging.getLogger(__package__)
10 
11 PLATFORMS = [Platform.SENSOR]
12 
13 OAUTH2_AUTHORIZE = "https://id.twitch.tv/oauth2/authorize"
14 OAUTH2_TOKEN = "https://id.twitch.tv/oauth2/token"
15 
16 CONF_REFRESH_TOKEN = "refresh_token"
17 
18 DOMAIN = "twitch"
19 CONF_CHANNELS = "channels"
20 
21 OAUTH_SCOPES = [AuthScope.USER_READ_SUBSCRIPTIONS, AuthScope.USER_READ_FOLLOWS]