소스 검색

Return a positive response if there was nothing to migrate.

Jason Rumney 4 년 전
부모
커밋
3e14b590a8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      custom_components/tuya_local/__init__.py

+ 1 - 1
custom_components/tuya_local/__init__.py

@@ -61,7 +61,7 @@ async def async_migrate_entry(hass, entry: ConfigEntry):
 
         entry.options = {**opts}
         entry.version = 2
-        return True
+    return True
 
 
 async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):