-
Notifications
You must be signed in to change notification settings - Fork 484
Required changes in the driver for Door/Window Contact II [M] device #2055
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Invitation URL: |
Minimum allowed coverage is Generated by 🐒 cobertura-action against 523a4d3 |
Duplicate profile check: Passed - no duplicate profiles detected. |
@@ -0,0 +1,160 @@ | |||
-- Copyright 2022 SmartThings |
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.
date
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, folder names are lowercase and hyphenated, e.g.: bosch-button-contact
@JanJakubiszyn I would add the fingerprints back and I will close my PR (#2049) in favor of this one. |
@@ -52,6 +52,8 @@ local TEMP_BOUND_RECEIVED = "__temp_bound_received" | |||
local TEMP_MIN = "__temp_min" | |||
local TEMP_MAX = "__temp_max" | |||
|
|||
local HUE_MANUFACTURER_ID = 0x100B |
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 remove this Hue specific handling- it has recently been taken out of the drivers.
|
||
local function is_bosch_open_close_button(opts, driver, device) | ||
if device.network_type == device_lib.NETWORK_TYPE_MATTER and | ||
device.manufacturer_info.vendor_id == BOSCH_VENDOR_ID 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.
Should the product id also be checked here?
WWSTCERT-5977 driver adjustments
Check all that apply
Type of Change
Checklist
Description of Change
Creating a sub-driver which handles button functionality for Bosch Door/Window Contact II [M] device.
Summary of Completed Tests
Manual tests of button capability.