Browse Source

Device config: use correct syntax for item not in list.

Jason Rumney 11 tháng trước cách đây
mục cha
commit
46edce0c42
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      custom_components/tuya_local/helpers/device_config.py

+ 1 - 1
custom_components/tuya_local/helpers/device_config.py

@@ -125,7 +125,7 @@ class TuyaDeviceConfig:
     @property
     def primary_entity(self):
         """Return the primary type of entity for this device."""
-        if not "primary_entity" in self._config:
+        if "primary_entity" not in self._config:
             # primary entity is a deprecated fallback, so if it is
             # missing, we need to log a warning about the missing entities
             # list.