1 """Constants for the Geocaching integration."""
3 from __future__
import annotations
5 from datetime
import timedelta
7 from typing
import Final
9 from geocachingapi.models
import GeocachingApiEnvironment
11 from .models
import GeocachingOAuthApiUrls
13 DOMAIN: Final =
"geocaching"
14 LOGGER = logging.getLogger(__package__)
19 authorize_url=
"https://staging.geocaching.com/oauth/authorize.aspx",
20 token_url=
"https://oauth-staging.geocaching.com/token",
23 authorize_url=
"https://www.geocaching.com/oauth/authorize.aspx",
24 token_url=
"https://oauth.geocaching.com/token",
28 ENVIRONMENT = GeocachingApiEnvironment.Production