-
Notifications
You must be signed in to change notification settings - Fork 521
Matter AQS: Break AQS files further apart, add supported air quality sensor value handling #2587
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
Conversation
|
Channel deleted. |
Test Results 71 files 477 suites 0s ⏱️ Results for commit c10b5ec. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against c10b5ec |
| @@ -0,0 +1,90 @@ | |||
| -- Copyright © 2025 SmartThings, Inc. | |||
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.
handlers unchanged, just moved
...rtThings/matter-sensor/src/sub_drivers/air_quality_sensor/air_quality_sensor_utils/utils.lua
Outdated
Show resolved
Hide resolved
...rtThings/matter-sensor/src/sub_drivers/air_quality_sensor/air_quality_sensor_utils/utils.lua
Show resolved
Hide resolved
...sensor/src/sub_drivers/air_quality_sensor/air_quality_sensor_handlers/attribute_handlers.lua
Outdated
Show resolved
Hide resolved
...sensor/src/sub_drivers/air_quality_sensor/air_quality_sensor_handlers/attribute_handlers.lua
Outdated
Show resolved
Hide resolved
| local conversion_function = fields.conversion_tables[from_unit][to_unit] | ||
| if conversion_function == nil then | ||
| device.log.info_with( {hub_logs = true} , string.format("Unsupported unit conversion from %s to %s", fields.unit_strings[from_unit], fields.unit_strings[to_unit])) | ||
| return 1 |
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.
I realize this was existing code, but we might want to return nil and check this at the callsite, otherwise the capability would be emitted with a wrong value if 1 is returned
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.
gonna put up a separate PR for this promptly
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.
PR up: #2602
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.
I think I'll wait for this guy to merge, then merge 2602 promptly afterwards.
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.
TY! Just approved it.
...tThings/matter-sensor/src/sub_drivers/air_quality_sensor/air_quality_sensor_utils/fields.lua
Show resolved
Hide resolved
nickolas-deboom
left a comment
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.
LGTM! I might just recommend doing a quick smoke test on device if you haven't
Description of Change
Break subdriver files apart further to match what was done in Matter Camera and the Bilresa subdriver.
Further, adds support for setting the supportedAttributeValues on an infoChanged event.
Summary of Completed Tests
Unit tests updated. Tested on-device to ensure only correct values are populated