فهرست منبع

fix(migration): replace accidentally removed line

Jason Rumney 1 روز پیش
والد
کامیت
ccc483dc92
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      custom_components/tuya_local/__init__.py

+ 1 - 0
custom_components/tuya_local/__init__.py

@@ -477,6 +477,7 @@ async def async_migrate_entry(hass, entry: ConfigEntry):
             get_config,
             get_config,
             entry.data[CONF_TYPE],
             entry.data[CONF_TYPE],
         )
         )
+        if conf_file is None:
             raise FileNotFoundError(errno.ENOENT, NOT_FOUND, entry.data[CONF_TYPE])
             raise FileNotFoundError(errno.ENOENT, NOT_FOUND, entry.data[CONF_TYPE])
 
 
         @callback
         @callback