-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for money and new electrical data types #37980
base: master
Are you sure you want to change the base?
Add support for money and new electrical data types #37980
Conversation
PR #37980: Size comparison from c0e580c to 929c0b0 Full report (5 builds for cc32xx, stm32, tizen)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have tested with these changes and my test PR #37902 (not that that will be raised for review) but gives confidence in these changes.
PR #37980: Size comparison from c0e580c to 88881f6 Full report (3 builds for cc32xx, stm32)
|
PR #37980: Size comparison from c0e580c to d86ebe8 Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #37980: Size comparison from 5adee57 to 1a72da1 Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
@@ -104,8 +104,14 @@ def NormalizeDataType(t: str) -> str: | |||
|
|||
# Handle odd casing and naming | |||
_CASE_RENAMES_MAPPING = { | |||
"amperage_mA": "amperage_ma", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So are we not using the spec casing for these types here because of ZAP limitations? Is there something tracking that?
MOCK_ATTRIBUTE_CONFIG_NULLABLE(ZCL_AMPERAGE_MA_ATTRIBUTE_TYPE), | ||
MOCK_ATTRIBUTE_CONFIG_NULLABLE(ZCL_VOLTAGE_MV_ATTRIBUTE_TYPE), | ||
MOCK_ATTRIBUTE_CONFIG_NULLABLE(ZCL_ENERGY_MWH_ATTRIBUTE_TYPE), | ||
MOCK_ATTRIBUTE_CONFIG_NULLABLE(ZCL_ENERGY_MVAH_ATTRIBUTE_TYPE), | ||
MOCK_ATTRIBUTE_CONFIG_NULLABLE(ZCL_ENERGY_MVARH_ATTRIBUTE_TYPE), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need a "money" case?
This adds the new atomic types going with Matter 1.5:
power_mVA
power_mVAR
energy_mVAh
energy_mVARh
money
Testing
Ran build.