Skip to content

Commit

Permalink
Entity naming: modify logic for use_device_name
Browse files Browse the repository at this point in the history
Last change seems to have made things worse, as lights are now getting
None appended as well, even with no class or translation_key.

Issue #1856
  • Loading branch information
make-all committed Dec 29, 2024
1 parent 1c1030d commit a90781f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/tuya_local/helpers/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a90781f

Please sign in to comment.