-
Notifications
You must be signed in to change notification settings - Fork 508
Add support for SBTZB-110 #2358
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
Add support for SBTZB-110 #2358
Conversation
Duplicate profile check: Passed - no duplicate profiles detected. |
Channel deleted. |
Test Results 69 files 449 suites 0s ⏱️ Results for commit a6b07da. ♻️ This comment has been updated with latest results. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against a6b07da |
- id: "frient A/S/SBTZB-110" | ||
deviceLabel: frient Button | ||
manufacturer: frient A/S | ||
model: MBTZB-110 | ||
deviceProfileName: button-profile | ||
model: SBTZB-110 | ||
deviceProfileName: button-profile-frient |
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 create a new fingerprint and leave the existing one as-is.
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.
Fingerprint restored.
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.
in general, we use 2-space 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.
Fixed.
endpoint = 0x23, | ||
frame_ctrl = 0x04 | ||
}, | ||
|
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.
extra newline
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.
Fixed.
}, | ||
can_handle = function(opts, driver, device, ...) | ||
return device:get_manufacturer() == "frient A/S" and device:get_model() == "MBTZB-110" | ||
return device:get_manufacturer() == "frient A/S" and device:get_model() == "SBTZB-110" |
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.
this will need to remain true for the existing model as well
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.
Restored.
added = added_handler, | ||
}, | ||
ias_zone_configuration_method = constants.IAS_ZONE_CONFIGURE_TYPE.AUTO_ENROLL_RESPONSE, | ||
health_check = 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.
this line should be left as-is
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.
Fixed.
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.
Since we have the old fingerprint (and have for several years) the existing functionality of the existing driver for that specific device model needs to remain the same.
Restore old fingerprint. Fix space tabs. Delete extra line. Restore MBTZB-110 in can_handle. Fix missing lines in main init.lua
end | ||
|
||
local function init_handler(self, device, event, args) | ||
local function ias_zone_status_attr_handler(driver, device, zone_status, zb_rx) |
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 could just register generate_event_from_zone_status
as the handler for the IAS Zone Status attribute rather than including this extra passthrough function.
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests