From 12e6f143a431f1a26f8ae1897dbe20a7da27516c Mon Sep 17 00:00:00 2001
From: Matrix <justin@yosmart.com>
Date: Thu, 2 Jun 2022 23:21:22 +0800
Subject: [PATCH] Bump yolink-api to 0.0.6 (#72903)

* Bump yolink-api to 0.0.6

* update testcase
---
 homeassistant/components/yolink/manifest.json | 2 +-
 requirements_all.txt                          | 2 +-
 requirements_test_all.txt                     | 2 +-
 tests/components/yolink/test_config_flow.py   | 6 ++----
 4 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/homeassistant/components/yolink/manifest.json b/homeassistant/components/yolink/manifest.json
index a89934154e9..7fb78a4974b 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 e91ff265ef7..d51e776863d 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 964290f6cf8..f7b246c64d2 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 5d6bb8fd727..e224bc3e1d2 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):
-- 
GitLab