Skip to content

Commit

Permalink
Fix get_name_and_translation_key (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukramJ authored Dec 24, 2023
1 parent a38201e commit 2c49258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/homematicip_local/entity_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def get_name_and_translation_key(
return UNDEFINED, None

if entity_desc.translation_key is None:
entity_desc.translation_key = hm_entity.parameter.lower()
return None, hm_entity.parameter.lower()
return None, entity_desc.translation_key

# custom entities use the customizable name from the CCU WebUI,
Expand Down

0 comments on commit 2c49258

Please sign in to comment.