Skip to content

Commit 922f266

Browse files
authored
Remove defaulting of translation_key (#251)
`translation_key` no longer defaults to `attribute_name` or `command_name`.
1 parent c6c1888 commit 922f266

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

zha/application/platforms/__init__.py

-4
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,6 @@ def _init_from_quirks_metadata(self, entity_metadata: EntityMetadata) -> None:
349349

350350
if entity_metadata.translation_key:
351351
self._attr_translation_key = entity_metadata.translation_key
352-
elif has_attribute_name:
353-
self._attr_translation_key = entity_metadata.attribute_name
354-
elif has_command_name:
355-
self._attr_translation_key = entity_metadata.command_name
356352

357353
if has_attribute_name:
358354
self._unique_id_suffix = entity_metadata.attribute_name

0 commit comments

Comments
 (0)