diff --git a/custom_components/tuya_local/helpers/mixin.py b/custom_components/tuya_local/helpers/mixin.py index 24f4da7a9c..577152f451 100644 --- a/custom_components/tuya_local/helpers/mixin.py +++ b/custom_components/tuya_local/helpers/mixin.py @@ -55,7 +55,10 @@ def name(self): @property def use_device_name(self): """Return whether to use the device name for the entity name""" - own_name = self._config.name or self._config.translation_key + alt_name = self._config.translation_key + if self._config.translation_key is self._config.device_class: + alt_name = None + own_name = self._config.name or alt_name return not own_name @property