Skip to content

Conversation

epenet
Copy link

@epenet epenet commented Sep 12, 2025

Comment on lines +213 to +214
if hasattr(self, "_attr_translation_placeholders"):
return self._attr_translation_placeholders
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The attribute should always be present, though we also check this for translation_key and _attr_entity_category. I think the hasattr check can be removed for all off them. Not sure why it's there in the first place. But we can also clean up the other attributes in another PR.

Copy link
Contributor

@TheJulianJES TheJulianJES left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, this looks good to me as well.

@TheJulianJES TheJulianJES self-assigned this Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants