فهرست منبع

Remove warning for devices also detectable as other device.

Our config flow can now handle selecting between duplicates, so there
is no need to warn.
Now that we have Simple Switch as a device, almost everything was
triggering the warning.
Jason Rumney 4 سال پیش
والد
کامیت
276a607183
1فایلهای تغییر یافته به همراه0 افزوده شده و 3 حذف شده
  1. 0 3
      tests/test_device_config.py

+ 0 - 3
tests/test_device_config.py

@@ -127,9 +127,6 @@ class TestDeviceConfig(unittest.TestCase):
             q = cfg.match_quality(payload)
             q = cfg.match_quality(payload)
             if q > best_q:
             if q > best_q:
                 best_q = q
                 best_q = q
-            warn(
-                f"{legacy_type} also detectable as {cfg.legacy_type} with quality {q}%"
-            )
 
 
         self.assertGreater(quality, best_q)
         self.assertGreater(quality, best_q)