Skip to content
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

Implement Flow Sensor device type #1665

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nickolas-deboom
Copy link
Contributor

@nickolas-deboom nickolas-deboom commented Oct 3, 2024

Type of Change

  • WWST Certification Request
    • If this is your first time contributing code:
      • I have reviewed the README.md file
      • I have reviewed the CODE_OF_CONDUCT.md file
      • I have signed the CLA
    • I plan on entering a WWST Certification Request or have entered a request through the WWST Certification console at developer.smartthings.com
  • Bug fix
  • New feature
  • Refactor

Checklist

  • I have performed a self-review of my code
  • I have commented my code in hard-to-understand areas
  • I have verified my changes by testing with a device or have communicated a plan for testing
  • I am adding new behavior, such as adding a sub-driver, and have added and run new unit tests to cover the new behavior

Description of Change

This change adds support for the Flow Sensor device type. This device type was added to matter spec a while ago but has not been implemented into our platform yet.

Summary of Completed Tests

New unit tests were implemented to verify the cluster -> capability mappings. Note that there are not any existing matter flow sensors yet, and there is not a virtual flow sensor device in the VDA, so we can't test this on a real device at this time.

Copy link

github-actions bot commented Oct 3, 2024

Duplicate profile check: Passed - no duplicate profiles detected.

Copy link

github-actions bot commented Oct 3, 2024

Test Results

   63 files    397 suites   0s ⏱️
1 937 tests 1 937 ✅ 0 💤 0 ❌
3 361 runs  3 361 ✅ 0 💤 0 ❌

Results for commit 48b7a8a.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Oct 3, 2024

File Coverage
All files 86%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-sensor/src/air-quality-sensor/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-sensor/src/embedded-cluster-utils.lua 42%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-sensor/src/init.lua 88%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-sensor/src/smoke-co-alarm/init.lua 83%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 48b7a8a

@hcarter-775
Copy link
Contributor

we need a fingerprint for the device 👍

@nickolas-deboom
Copy link
Contributor Author

we need a fingerprint for the device 👍

I forgot to respond but I added one!

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