Skip to content

Conversation

@aleclorimer
Copy link
Contributor

Lazy loading of the zigbee-motion-sensor sub drivers with the can_handle lazy loading.

This driver was modified heavily by the use of a script I've been developing to automate this process for the rest of the zigbee, zwave and matter drivers. This is the first PR & driver refactored with the assistance of the script (though still massaged to pass all driver tests by me).

@github-actions
Copy link

@github-actions
Copy link

github-actions bot commented Nov 13, 2025

Test Results

   71 files    475 suites   0s ⏱️
2 471 tests 2 471 ✅ 0 💤 0 ❌
4 223 runs  4 223 ✅ 0 💤 0 ❌

Results for commit d723c87.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Nov 13, 2025

File Coverage
All files 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-motion-sensor/src/aqara/init.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-motion-sensor/src/aqara/aqara_utils.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-motion-sensor/src/ikea/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-motion-sensor/src/lazy_load_subdriver.lua 57%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-motion-sensor/src/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-motion-sensor/src/frient/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-motion-sensor/src/gatorsystem/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-motion-sensor/src/thirdreality/init.lua 93%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against d723c87

@aleclorimer aleclorimer force-pushed the task/zigbee-motion-sensor-lazy-load-subdrivers branch from 0ae4dbb to 993cfb0 Compare November 13, 2025 20:18
Copy link
Contributor

@cjswedes cjswedes left a comment

Choose a reason for hiding this comment

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

LGTM, just a few formatting nits that are nice to have. Did the test suite get run against 0.58 lua libs? CI is now running 0.59 lua libs, and we need to check that 58 doesnt have failing tests related to this.

Copy link
Contributor

@greens greens left a comment

Choose a reason for hiding this comment

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

While you're touching all of these files, would it be possible to replace the existing copyright/license statement with the shorter one?

@aleclorimer aleclorimer changed the title zb-motion: Lazy loading of can handle and scripting testing ground CHAD-17042: zb-motion: Lazy loading of can handle and scripting testing ground Dec 2, 2025
@aleclorimer aleclorimer force-pushed the task/zigbee-motion-sensor-lazy-load-subdrivers branch from 4437ba7 to cfc0b30 Compare December 3, 2025 17:00
@aleclorimer aleclorimer force-pushed the task/zigbee-motion-sensor-lazy-load-subdrivers branch from cfc0b30 to d723c87 Compare December 3, 2025 17:01
@aleclorimer
Copy link
Contributor Author

Gona merge this today unless there are any objections. The latest changes were the newlines, copyright updates and squashing commits.

@cjswedes
Copy link
Contributor

cjswedes commented Dec 3, 2025

Did the test suite get run against 0.58 lua libs? CI is now running 0.59 lua libs, and we need to check that 58 doesnt have failing tests related to this.

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.

4 participants