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

Lazy load zwave switch sub drivers #921

Closed
wants to merge 1 commit into from
Closed

Conversation

ctowns
Copy link
Contributor

@ctowns ctowns commented Aug 17, 2023

This utilizes a new method of loading subdrivers that allows the sub drivers to be dynamically loaded when needed rather than having every subdriver loaded at initialization.

@github-actions
Copy link

github-actions bot commented Aug 17, 2023

Channel deleted.

@github-actions
Copy link

github-actions bot commented Aug 17, 2023

Test Results

     52 files  ±0     344 suites  ±0   0s ⏱️ ±0s
1 622 tests ±0  1 248 ✔️  - 374  0 💤 ±0  0 ±0  374 🔥 +374 
2 839 runs  ±0  2 274 ✔️  - 565  0 💤 ±0  0 ±0  565 🔥 +565 

For more details on these errors, see this check.

Results for commit 196ee7f. ± Comparison against base commit 38c1a61.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 17, 2023

File Coverage
All files 86%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/eaton-accessory-dimmer/init.lua 58%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/configurations.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/preferences.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/init.lua 43%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 196ee7f

require("zooz-zen-30-dimmer-relay"),
require("multichannel-device"),
require("aeotec-smart-switch")
Driver.lazy_load_subdriver(require("eaton-accessory-dimmer")),
Copy link
Contributor

Choose a reason for hiding this comment

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

won't this be in the ZwaveDriver object? I don't think you have to additionally include Driver here, do you?

This utilizes a new method of loading subdrivers that allows
the sub drivers to be dynamically loaded when needed rather
than having every subdriver loaded at initialization.
@ctowns ctowns closed this Jul 16, 2024
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