mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Bump yolink-api to 0.0.6 (#72903)
* Bump yolink-api to 0.0.6 * update testcase
This commit is contained in:
parent
b89cd37de8
commit
9192d0e972
@ -3,7 +3,7 @@
|
|||||||
"name": "YoLink",
|
"name": "YoLink",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/yolink",
|
"documentation": "https://www.home-assistant.io/integrations/yolink",
|
||||||
"requirements": ["yolink-api==0.0.5"],
|
"requirements": ["yolink-api==0.0.6"],
|
||||||
"dependencies": ["auth", "application_credentials"],
|
"dependencies": ["auth", "application_credentials"],
|
||||||
"codeowners": ["@matrixd2"],
|
"codeowners": ["@matrixd2"],
|
||||||
"iot_class": "cloud_push"
|
"iot_class": "cloud_push"
|
||||||
|
@ -2486,7 +2486,7 @@ yeelight==0.7.10
|
|||||||
yeelightsunflower==0.0.10
|
yeelightsunflower==0.0.10
|
||||||
|
|
||||||
# homeassistant.components.yolink
|
# homeassistant.components.yolink
|
||||||
yolink-api==0.0.5
|
yolink-api==0.0.6
|
||||||
|
|
||||||
# homeassistant.components.youless
|
# homeassistant.components.youless
|
||||||
youless-api==0.16
|
youless-api==0.16
|
||||||
|
@ -1638,7 +1638,7 @@ yalexs==1.1.25
|
|||||||
yeelight==0.7.10
|
yeelight==0.7.10
|
||||||
|
|
||||||
# homeassistant.components.yolink
|
# homeassistant.components.yolink
|
||||||
yolink-api==0.0.5
|
yolink-api==0.0.6
|
||||||
|
|
||||||
# homeassistant.components.youless
|
# homeassistant.components.youless
|
||||||
youless-api==0.16
|
youless-api==0.16
|
||||||
|
@ -3,6 +3,8 @@ import asyncio
|
|||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
from yolink.const import OAUTH2_AUTHORIZE, OAUTH2_TOKEN
|
||||||
|
|
||||||
from homeassistant import config_entries, data_entry_flow, setup
|
from homeassistant import config_entries, data_entry_flow, setup
|
||||||
from homeassistant.components import application_credentials
|
from homeassistant.components import application_credentials
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
@ -12,11 +14,7 @@ from tests.common import MockConfigEntry
|
|||||||
|
|
||||||
CLIENT_ID = "12345"
|
CLIENT_ID = "12345"
|
||||||
CLIENT_SECRET = "6789"
|
CLIENT_SECRET = "6789"
|
||||||
YOLINK_HOST = "api.yosmart.com"
|
|
||||||
YOLINK_HTTP_HOST = f"http://{YOLINK_HOST}"
|
|
||||||
DOMAIN = "yolink"
|
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):
|
async def test_abort_if_no_configuration(hass):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user