Fix platform typo in Tuya const (#57716)

This commit is contained in:
Joakim Sørensen 2021-10-15 00:46:06 +02:00 committed by GitHub
parent 4a20d28ec6
commit a9737865ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ from .const import (
TUYA_COUNTRIES,
TUYA_RESPONSE_CODE,
TUYA_RESPONSE_MSG,
TUYA_RESPONSE_PLATFROM_URL,
TUYA_RESPONSE_PLATFORM_URL,
TUYA_RESPONSE_RESULT,
TUYA_RESPONSE_SUCCESS,
TUYA_SMART_APP,
@ -97,7 +97,7 @@ class TuyaConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
if response.get(TUYA_RESPONSE_SUCCESS, False):
if endpoint := response.get(TUYA_RESPONSE_RESULT, {}).get(
TUYA_RESPONSE_PLATFROM_URL
TUYA_RESPONSE_PLATFORM_URL
):
data[CONF_ENDPOINT] = endpoint

View file

@ -23,7 +23,7 @@ TUYA_RESPONSE_CODE = "code"
TUYA_RESPONSE_RESULT = "result"
TUYA_RESPONSE_MSG = "msg"
TUYA_RESPONSE_SUCCESS = "success"
TUYA_RESPONSE_PLATFROM_URL = "platform_url"
TUYA_RESPONSE_PLATFORM_URL = "platform_url"
TUYA_SUPPORTED_PRODUCT_CATEGORIES = (
"bh", # Smart Kettle