Files
core/homeassistant/components/google_health/const.py
T

25 lines
651 B
Python

"""Constants for the Google Health integration."""
from google_health_api.const import HealthApiScope
DOMAIN = "google_health"
OAUTH2_AUTHORIZE = "https://accounts.google.com/o/oauth2/v2/auth"
OAUTH2_TOKEN = "https://oauth2.googleapis.com/token"
API_CONSOLE_URL = (
"https://console.developers.google.com/apis/api/health.googleapis.com/overview"
)
DEFAULT_TITLE = "Google Health"
OAUTH_SCOPES = [
HealthApiScope.ACTIVITY_READ,
HealthApiScope.PROFILE_READ,
HealthApiScope.MEASUREMENTS_READ,
HealthApiScope.NUTRITION_READ,
HealthApiScope.SETTINGS_READ,
HealthApiScope.SLEEP_READ,
HealthApiScope.USERINFO_PROFILE,
]