File tree 2 files changed +7
-2
lines changed
custom_components/daikin_onecta
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
from homeassistant .components .application_credentials import AuthorizationServer
2
2
from homeassistant .core import HomeAssistant
3
+ from .const import OAUTH2_AUTHORIZE
4
+ from .const import OAUTH2_TOKEN
3
5
4
6
5
7
async def async_get_authorization_server (hass : HomeAssistant ) -> AuthorizationServer :
6
8
"""Return authorization server."""
7
9
return AuthorizationServer (
8
- authorize_url = "https://idp.onecta.daikineurope.com/v1/oidc/authorize" ,
9
- token_url = "https://idp.onecta.daikineurope.com/v1/oidc/token" ,
10
+ authorize_url = OAUTH2_AUTHORIZE ,
11
+ token_url = OAUTH2_TOKEN ,
10
12
)
Original file line number Diff line number Diff line change 16
16
DOMAIN = "daikin_onecta"
17
17
COORDINATOR = "coordinator"
18
18
19
+ OAUTH2_AUTHORIZE = "https://idp.onecta.daikineurope.com/v1/oidc/authorize"
20
+ OAUTH2_TOKEN = "https://idp.onecta.daikineurope.com/v1/oidc/token"
21
+
19
22
DAIKIN_DATA = "daikin_data"
20
23
DAIKIN_API = "daikin_api"
21
24
DAIKIN_DEVICES = "daikin_devices"
You can’t perform that action at this time.
0 commit comments