diff --git a/custom_components/tuya_local/helpers/mixin.py b/custom_components/tuya_local/helpers/mixin.py index 7470517e67..511e6835ec 100644 --- a/custom_components/tuya_local/helpers/mixin.py +++ b/custom_components/tuya_local/helpers/mixin.py @@ -60,10 +60,7 @@ def use_device_name(self): own_name = ( self._config.name or self._config.translation_key - or ( - self._default_to_device_class_name - and not self._config.translation_only_key - ) + or (self._default_to_device_class_name and self._config.device_class) ) return not own_name