浏览代码

Fix typo in variable name (take two).

AI completion coming up with some difficult to spot multi-faceted hallucinations.
Jason Rumney 1 年之前
父节点
当前提交
b934d3f7bb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      custom_components/tuya_local/config_flow.py

+ 1 - 1
custom_components/tuya_local/config_flow.py

@@ -282,7 +282,7 @@ class ConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
             existing_uuid = (
             existing_uuid = (
                 domain_data.get(cloud_device["uuid"]) if domain_data else None
                 domain_data.get(cloud_device["uuid"]) if domain_data else None
             )
             )
-            existing = exisiting_id or existing_uuid
+            existing = existing_id or existing_uuid
             if existing and existing.get("device"):
             if existing and existing.get("device"):
                 cloud_device["exists"] = True
                 cloud_device["exists"] = True