Fix platform typo in Tuya const (#57716)
This commit is contained in:
parent
4a20d28ec6
commit
a9737865ae
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue