-
Notifications
You must be signed in to change notification settings - Fork 464
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] Smart Wall Switch(With Neutral, No Neutral) #963
[Aqara] Smart Wall Switch(With Neutral, No Neutral) #963
Conversation
Channel deleted. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against 3a268b3 |
elseif device.network_type == "DEVICE_EDGE_CHILD" then | ||
device:emit_event(capabilities.button.supportedButtonValues({ "pushed" }, | ||
{ visibility = { displayed = false } })) | ||
device:emit_event(capabilities.button.numberOfButtons({ value = 1 }, | ||
{ visibility = { displayed = false } })) | ||
device:emit_event(capabilities.button.button.pushed({ state_change = false })) |
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.
just move the identical code from above outside of the if
block
also write some tests to capture this behavior.
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.
I applied the changes you requested.
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.
Actually, can you capture this behavior in a test, please?
fix routine condition error on child button of light switch