Ver Fonte

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

Jason Rumney há 9 meses atrás
pai
commit
46edce0c42
1 ficheiros alterados com 1 adições e 1 exclusões
  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.