Bläddra i källkod

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 12 timmar sedan
förälder
incheckning
99183c6d1a
1 ändrade filer med 5 tillägg och 5 borttagningar
  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():
                 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)
+                # 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:
             self._scanning = False