Skip to content

Commit 1349b7a

Browse files
committed
remove unused function is_aqara_products in int.lua
1 parent b13bde7 commit 1349b7a

File tree

1 file changed

+0
-10
lines changed
  • drivers/SmartThings/zigbee-switch/src/aqara-light

1 file changed

+0
-10
lines changed

drivers/SmartThings/zigbee-switch/src/aqara-light/init.lua

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@ local FINGERPRINTS = {
2121
{ mfr = "LUMI", model = "lumi.light.cwacn1" }
2222
}
2323

24-
local function is_aqara_products(opts, driver, device)
25-
for _, fingerprint in ipairs(FINGERPRINTS) do
26-
if device:get_manufacturer() == fingerprint.mfr and device:get_model() == fingerprint.model then
27-
local subdriver = require("aqara-light")
28-
return true, subdriver
29-
end
30-
end
31-
return false
32-
end
33-
3424
local function do_refresh(self, device)
3525
device:send(OnOff.attributes.OnOff:read(device))
3626
device:send(Level.attributes.CurrentLevel:read(device))

0 commit comments

Comments
 (0)