Skip to content

Conversation

epenet
Copy link
Contributor

@epenet epenet commented Sep 12, 2025

Added as kwarg only to avoid breaking changes (may conflict with #1652)

Needed for zigpy/zha#533

@Copilot Copilot AI review requested due to automatic review settings September 12, 2025 06:10
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for translation_placeholders functionality to the v2 quirks system, allowing entities to have dynamic translation values.

  • Adds translation_placeholders field to entity metadata classes
  • Updates all entity creation methods to accept the new parameter
  • Extends entity modification capabilities to include translation placeholder updates

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

codecov bot commented Sep 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.31%. Comparing base (b319f45) to head (84d7dec).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #1668   +/-   ##
=======================================
  Coverage   99.31%   99.31%           
=======================================
  Files          62       62           
  Lines       12043    12045    +2     
=======================================
+ Hits        11960    11962    +2     
  Misses         83       83           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

The changes look good. Thanks!
I can solve the conflict in #1652 later.

@TheJulianJES TheJulianJES self-assigned this Sep 18, 2025
@epenet
Copy link
Contributor Author

epenet commented Sep 24, 2025

Any news about this?
Is there any chance this might be included in HA 2025.10?

@puddly
Copy link
Collaborator

puddly commented Sep 24, 2025

Sorry, I'll be aiming to get this into 2025.11.

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.

I'll get this in now. There's nothing breaking here, and it's a really minor change on the zigpy side.

@TheJulianJES TheJulianJES merged commit 42dcee5 into zigpy:dev Oct 10, 2025
14 checks passed
@epenet epenet deleted the epenet-20250912-0808 branch October 10, 2025 14:54
attribute_initialized_from_cache: bool = attrs.field(default=True)
unique_id_suffix: str | None = attrs.field(default=None)
translation_key: str | None = attrs.field(default=None)
translation_placeholders: dict[str, str] | None = attrs.field(default=None)
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for missing this. This should have been a frozendict. I'll fix it in a few minutes.

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.

3 participants