|
|
@@ -203,6 +203,11 @@ class TuyaEntityConfig:
|
|
|
"""The friendly name for this entity."""
|
|
|
return self._config.get("name")
|
|
|
|
|
|
+ @property
|
|
|
+ def translation_key(self):
|
|
|
+ """The translation key for this entity."""
|
|
|
+ return self._config.get("translation_key")
|
|
|
+
|
|
|
def unique_id(self, device_uid):
|
|
|
"""Return a suitable unique_id for this entity."""
|
|
|
return f"{device_uid}-{slugify(self.config_id)}"
|