-
Notifications
You must be signed in to change notification settings - Fork 442
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
base: main
Are you sure you want to change the base?
Aqara Curtain Driver E1 #1457
Conversation
Duplicate profile check: Passed - no duplicate profiles detected. |
Invitation URL: |
Test Results 60 files 378 suites 0s ⏱️ Results for commit 1955e60. ♻️ This comment has been updated with latest results. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against 1955e60 |
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 |
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: we use 2 spaces instead of tabs
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.
modified
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.
please standardize your whitespace to use two spaces instead of tabs, you've mixed them both in several places
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 | ||
) |
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.
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
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.
modified
@@ -217,6 +218,7 @@ local aqara_window_treatment_handler = { | |||
}, | |||
sub_drivers = { | |||
require("aqara.roller-shade"), | |||
require("aqara.curtain-driver-e1"), |
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.
missed whitespace
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.
Modified,thanks
No description provided.