Просмотр исходного кода

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

Jason Rumney 9 месяцев назад
Родитель
Сommit
46edce0c42
1 измененных файлов с 1 добавлено и 1 удалено
  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.