-
Notifications
You must be signed in to change notification settings - Fork 517
zb-motion: Lazy loading of can handle and scripting testing ground #2551
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
base: main
Are you sure you want to change the base?
Conversation
|
Invitation URL: |
Test Results 71 files 466 suites 0s ⏱️ Results for commit 993cfb0. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 993cfb0 |
…nto sub-subdriver directories
0ae4dbb to
993cfb0
Compare
cjswedes
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, 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.
| @@ -0,0 +1,9 @@ | |||
|
|
|||
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.
nit: extra newline
| { mfr = "AduroSmart Eria", model = "VMS_ADUROLIGHT" } | ||
| } | ||
|
|
||
| return DEVICES_REPORTING_BATTERY_VOLTAGE No newline at end of file |
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.
nit: newline at end of file
| -- Licensed under the Apache License, Version 2.0 | ||
|
|
||
| local function centralite_can_handle(opts, driver, device, ...) | ||
| if device:get_manufacturer() == "CentraLite" then |
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.
nit: indentation
|
|
||
| local function gatorsystem_can_handle(opts, driver, device, ...) | ||
| if device:get_manufacturer() == "GatorSystem" and device:get_model() == "GSHW01" then | ||
| return true, require("gatorsystem") |
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.
nit: indentation
| -- Licensed under the Apache License, Version 2.0 | ||
|
|
||
| local function samjin_can_handle(opts, driver, device, ...) | ||
| if device:get_manufacturer() == "Samjin" then |
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.
nit: indentation
| -- Licensed under the Apache License, Version 2.0 | ||
|
|
||
| local function smartthings_can_handle(opts, driver, device, ...) | ||
| if device:get_manufacturer() == "SmartThings" then |
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.
nit: indentation
greens
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.
While you're touching all of these files, would it be possible to replace the existing copyright/license statement with the shorter one?
Lazy loading of the
zigbee-motion-sensorsub drivers with thecan_handlelazy 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).