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

Aqara Curtain Driver E1 #1457

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

Conversation

Hongming6
Copy link
Contributor

No description provided.

Copy link

Duplicate profile check: Passed - no duplicate profiles detected.

Copy link

Copy link

github-actions bot commented Jun 19, 2024

Test Results

   60 files    378 suites   0s ⏱️
1 833 tests 1 833 ✅ 0 💤 0 ❌
3 177 runs  3 177 ✅ 0 💤 0 ❌

Results for commit 1955e60.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jun 19, 2024

File Coverage
All files 88%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/invert-lift-percentage/init.lua 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/vimar/init.lua 50%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/hanssem/init.lua 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/somfy/init.lua 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/aqara/curtain-driver-e1/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/aqara/roller-shade/init.lua 79%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/aqara/init.lua 78%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/aqara/aqara_utils.lua 75%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/yoolax/init.lua 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zigbee-window-treatment/src/axis/axis_version/init.lua 97%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 1955e60

Comment on lines 67 to 75
local data = data_types.validate_or_build_type(value, data_type)
local message = cluster_base.write_attribute(device, data_types.ClusterId(cluster), attribute, data)
if mfg_code ~= nil then
message.body.zcl_header.frame_ctrl:set_mfg_specific()
message.body.zcl_header.mfg_code = data_types.validate_or_build_type(mfg_code, data_types.Uint16, "mfg_code")
else
message.body.zcl_header.frame_ctrl = FrameCtrl(0x10)
end
return message
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we use 2 spaces instead of tabs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

modified

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.

please standardize your whitespace to use two spaces instead of tabs, you've mixed them both in several places

Comment on lines 179 to 193
test.register_coroutine_test(
"Window shade open cmd handler",
function()
test.socket.capability:__queue_receive(
{
mock_device.id,
{ capability = "windowShade", component = "main", command = "open", args = {} }
}
)
-- test.socket.zigbee:__expect_send({
-- mock_device.id,
-- WindowCovering.server.commands.UpOrOpen(mock_device, 'open')
-- })
end
)
Copy link
Contributor

Choose a reason for hiding this comment

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

you need to write this test so that the initialization happens so that the test can verify the command is actually sent in that case

or, ideally, you have a test for both possibilities: initialized and uninitialized

Copy link
Contributor Author

Choose a reason for hiding this comment

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

modified

@@ -217,6 +218,7 @@ local aqara_window_treatment_handler = {
},
sub_drivers = {
require("aqara.roller-shade"),
require("aqara.curtain-driver-e1"),
Copy link
Contributor

Choose a reason for hiding this comment

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

missed whitespace

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Modified,thanks

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.

None yet

3 participants