|
|
@@ -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.
|