Skip to content

Conversation

@TheJulianJES
Copy link
Contributor

@TheJulianJES TheJulianJES commented Nov 26, 2025

Comment on lines 1154 to 1158
# can access the quirk metadata for config features for now
assert zha_device.quirk_metadata.exposes_features == (
ExposesFeatureMetadata(feature="some_feature"),
ExposesFeatureMetadata(feature="another_feature", config={"option": True}),
)
Copy link
Contributor Author

@TheJulianJES TheJulianJES Nov 26, 2025

Choose a reason for hiding this comment

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

We can access the config parameters using the quirk_metadata for now.

In the future, we can consider changing the device.exposes_features from a set[str] to something else, but as we don't need the config options at this very moment, it's something we can do later.
Not sure in how many situations this is an issue anyway.

@TheJulianJES TheJulianJES force-pushed the tjj/quirks_v2_exposed_features branch from c03d970 to 046b34c Compare November 26, 2025 02:10
@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.97%. Comparing base (5cc4904) to head (046b34c).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #586      +/-   ##
==========================================
+ Coverage   96.96%   96.97%   +0.01%     
==========================================
  Files          63       63              
  Lines       10553    10555       +2     
==========================================
+ Hits        10233    10236       +3     
+ Misses        320      319       -1     

☔ 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.

@TheJulianJES TheJulianJES merged commit c493df4 into zigpy:dev Nov 26, 2025
9 checks passed
@TheJulianJES TheJulianJES deleted the tjj/quirks_v2_exposed_features branch November 26, 2025 02:22
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