Kaynağa Gözat

Fix typo in variable name (take two).

AI completion coming up with some difficult to spot multi-faceted hallucinations.
Jason Rumney 1 yıl önce
ebeveyn
işleme
b934d3f7bb
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 = (
                 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"):
                 cloud_device["exists"] = True