diff --git a/homeassistant/components/tuya/__init__.py b/homeassistant/components/tuya/__init__.py index 89b49a639cd..276d21f3821 100644 --- a/homeassistant/components/tuya/__init__.py +++ b/homeassistant/components/tuya/__init__.py @@ -28,7 +28,6 @@ from .const import ( CONF_COUNTRY_CODE, CONF_ENDPOINT, CONF_PASSWORD, - CONF_PROJECT_TYPE, CONF_USERNAME, DOMAIN, LOGGER, @@ -50,13 +49,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Async setup hass config entry.""" hass.data.setdefault(DOMAIN, {}) - # Project type has been renamed to auth type in the upstream Tuya IoT SDK. - # This migrates existing config entries to reflect that name change. - if CONF_PROJECT_TYPE in entry.data: - data = {**entry.data, CONF_AUTH_TYPE: entry.data[CONF_PROJECT_TYPE]} - data.pop(CONF_PROJECT_TYPE) - hass.config_entries.async_update_entry(entry, data=data) - auth_type = AuthType(entry.data[CONF_AUTH_TYPE]) api = TuyaOpenAPI( endpoint=entry.data[CONF_ENDPOINT],