Bump yolink-api to 0.0.6 (#72903)

* Bump yolink-api to 0.0.6

* update testcase
This commit is contained in:
Matrix 2022-06-02 23:21:22 +08:00 committed by GitHub
parent b89cd37de8
commit 9192d0e972
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 7 deletions

View file

@ -3,7 +3,7 @@
"name": "YoLink",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/yolink",
"requirements": ["yolink-api==0.0.5"],
"requirements": ["yolink-api==0.0.6"],
"dependencies": ["auth", "application_credentials"],
"codeowners": ["@matrixd2"],
"iot_class": "cloud_push"

View file

@ -2486,7 +2486,7 @@ yeelight==0.7.10
yeelightsunflower==0.0.10
# homeassistant.components.yolink
yolink-api==0.0.5
yolink-api==0.0.6
# homeassistant.components.youless
youless-api==0.16

View file

@ -1638,7 +1638,7 @@ yalexs==1.1.25
yeelight==0.7.10
# homeassistant.components.yolink
yolink-api==0.0.5
yolink-api==0.0.6
# homeassistant.components.youless
youless-api==0.16

View file

@ -3,6 +3,8 @@ import asyncio
from http import HTTPStatus
from unittest.mock import patch
from yolink.const import OAUTH2_AUTHORIZE, OAUTH2_TOKEN
from homeassistant import config_entries, data_entry_flow, setup
from homeassistant.components import application_credentials
from homeassistant.core import HomeAssistant
@ -12,11 +14,7 @@ from tests.common import MockConfigEntry
CLIENT_ID = "12345"
CLIENT_SECRET = "6789"
YOLINK_HOST = "api.yosmart.com"
YOLINK_HTTP_HOST = f"http://{YOLINK_HOST}"
DOMAIN = "yolink"
OAUTH2_AUTHORIZE = f"{YOLINK_HTTP_HOST}/oauth/v2/authorization.htm"
OAUTH2_TOKEN = f"{YOLINK_HTTP_HOST}/open/yolink/token"
async def test_abort_if_no_configuration(hass):