2023-05-24 07:18:20 +00:00
|
|
|
"""Const for Twitch."""
|
2024-03-08 18:15:59 +00:00
|
|
|
|
2023-05-24 07:18:20 +00:00
|
|
|
import logging
|
|
|
|
|
|
|
|
from twitchAPI.twitch import AuthScope
|
|
|
|
|
2023-09-27 13:45:52 +00:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
2023-05-24 07:18:20 +00:00
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
|
2023-09-27 13:45:52 +00:00
|
|
|
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"
|
2023-05-24 07:18:20 +00:00
|
|
|
CONF_CHANNELS = "channels"
|
2024-03-13 19:16:00 +00:00
|
|
|
CLIENT = "client"
|
|
|
|
SESSION = "session"
|
2023-05-24 07:18:20 +00:00
|
|
|
|
2023-09-27 13:45:52 +00:00
|
|
|
OAUTH_SCOPES = [AuthScope.USER_READ_SUBSCRIPTIONS, AuthScope.USER_READ_FOLLOWS]
|