mirror of https://github.com/home-assistant/core
22 lines
470 B
Python
22 lines
470 B
Python
"""Const for Twitch."""
|
|
|
|
import logging
|
|
|
|
from twitchAPI.twitch import AuthScope
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
PLATFORMS = [Platform.SENSOR]
|
|
|
|
OAUTH2_AUTHORIZE = "https://id.twitch.tv/oauth2/authorize"
|
|
OAUTH2_TOKEN = "https://id.twitch.tv/oauth2/token"
|
|
|
|
CONF_REFRESH_TOKEN = "refresh_token"
|
|
|
|
DOMAIN = "twitch"
|
|
CONF_CHANNELS = "channels"
|
|
|
|
OAUTH_SCOPES = [AuthScope.USER_READ_SUBSCRIPTIONS, AuthScope.USER_READ_FOLLOWS]
|