diff --git a/homeassistant/components/tuya/config_flow.py b/homeassistant/components/tuya/config_flow.py index bcde364ae1b..08a913992a3 100644 --- a/homeassistant/components/tuya/config_flow.py +++ b/homeassistant/components/tuya/config_flow.py @@ -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 diff --git a/homeassistant/components/tuya/const.py b/homeassistant/components/tuya/const.py index 56f5b584121..0bc71a478b4 100644 --- a/homeassistant/components/tuya/const.py +++ b/homeassistant/components/tuya/const.py @@ -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