From b323295aa15ff6ac81e46b213a2f22440f0460de Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 29 Oct 2023 19:18:31 +0100 Subject: [PATCH] Clean up old config entry migration from Tuya (#103026) --- homeassistant/components/tuya/__init__.py | 8 -------- 1 file changed, 8 deletions(-) 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],