Переглянути джерело

cleanup(discovery): drop logging of unmatched devices

Although initially with the appropriate template the work created was manageable,
with everyone now using AI to bypass issue templates and report whatever info
the AI randomly decides it wants to, it is contributing to unsustainable levels
of AI slop in the development queue.
Jason Rumney 18 годин тому
батько
коміт
99183c6d1a
1 змінених файлів з 5 додано та 5 видалено
  1. 5 5
      custom_components/tuya_local/discovery.py

+ 5 - 5
custom_components/tuya_local/discovery.py

@@ -202,12 +202,12 @@ class TuyaLANRediscovery:
 
 
             for gwid, info in by_gwid.items():
             for gwid, info in by_gwid.items():
                 entry = configured.get(gwid)
                 entry = configured.get(gwid)
-                if entry is not None:
-                    # Skip sub-devices for now, the WiFi reported product id is for the hub
-                    if not entry.data.get(CONF_DEVICE_CID):
-                        await self._check_product(entry, info.get("productKey"))
-                else:
+                if entry is None:
                     self._discover_new(gwid, info)
                     self._discover_new(gwid, info)
+                # elif not entry.data.get(CONF_DEVICE_CID):
+                #     # Skip sub-devices for now, the WiFi reported product id is for the hub
+                #     await self._check_product(entry, info.get("productKey"))
+
         finally:
         finally:
             self._scanning = False
             self._scanning = False