diff --git a/homeassistant/components/yolink/manifest.json b/homeassistant/components/yolink/manifest.json index a89934154e90c7a418e4695c42e6b938470603a6..7fb78a4974bbc43088049370cb678eda8e728d43 100644 --- a/homeassistant/components/yolink/manifest.json +++ b/homeassistant/components/yolink/manifest.json @@ -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" diff --git a/requirements_all.txt b/requirements_all.txt index e91ff265ef748eebcaafa11b4de7c7eda748b604..d51e776863da5c8d588da60917444a7c29b23d3b 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 964290f6cf8a4edf97a7d5ca29bb10d4bc4bf760..f7b246c64d2245066318b9bbd2370c915e48225f 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -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 diff --git a/tests/components/yolink/test_config_flow.py b/tests/components/yolink/test_config_flow.py index 5d6bb8fd727e225c6bceb50bfe258114d2391be1..e224bc3e1d21fa35409722539b123032d631fc84 100644 --- a/tests/components/yolink/test_config_flow.py +++ b/tests/components/yolink/test_config_flow.py @@ -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):