Add YoLink product integration (#69167)
* add yolink integration with door sensor * Add test flow and update .coveragerc * Yolink integration Bug fix * resovle test flow * issues resolve * issues resolve * issues resolve * resolve issues * issues resolve * issues resolve * change .coveragerc and test_flow * Update yolink api version * add test for config entry * change config flow and add test cases * remove config entry data * Add token check for re-auth test flow * fix test flow issues * Add application credentials * Add alias for application_credentials * support application credentials and cloud account linking * fix suggest change
This commit is contained in:
parent
513e276bba
commit
e0154d6fb1
19 changed files with 740 additions and 1 deletions
14
homeassistant/components/yolink/application_credentials.py
Normal file
14
homeassistant/components/yolink/application_credentials.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
"""Application credentials platform for yolink."""
|
||||
|
||||
from yolink.const import OAUTH2_AUTHORIZE, OAUTH2_TOKEN
|
||||
|
||||
from homeassistant.components.application_credentials import AuthorizationServer
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
|
||||
async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServer:
|
||||
"""Return authorization server."""
|
||||
return AuthorizationServer(
|
||||
authorize_url=OAUTH2_AUTHORIZE,
|
||||
token_url=OAUTH2_TOKEN,
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue