Use Tuya endpoints values from upstream library (#57537)

This commit is contained in:
Franck Nijhof 2021-10-12 14:33:19 +02:00 committed by GitHub
parent c943677675
commit f82af47f6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 48 deletions

View file

@ -5,6 +5,7 @@ from typing import Any
from unittest.mock import MagicMock, patch
import pytest
from tuya_iot import TuyaCloudOpenAPIEndpoint
from homeassistant import config_entries, data_entry_flow
from homeassistant.components.tuya.const import (
@ -17,7 +18,6 @@ from homeassistant.components.tuya.const import (
CONF_PASSWORD,
CONF_USERNAME,
DOMAIN,
ENDPOINT_INDIA,
SMARTLIFE_APP,
TUYA_COUNTRIES,
TUYA_SMART_APP,
@ -32,7 +32,7 @@ MOCK_ACCESS_ID = "myAccessId"
MOCK_ACCESS_SECRET = "myAccessSecret"
MOCK_USERNAME = "myUsername"
MOCK_PASSWORD = "myPassword"
MOCK_ENDPOINT = ENDPOINT_INDIA
MOCK_ENDPOINT = TuyaCloudOpenAPIEndpoint.INDIA
TUYA_INPUT_DATA = {
CONF_COUNTRY_CODE: MOCK_COUNTRY,