Skip to content

Commit df26b2e

Browse files
committed
Update copywrites to be shorter and add them where missing
This is done to maintain consitency across the whole driver and set an example for other drivers to follow. The reduced source file comment should also help with memory savings since comments do affect memory of a driver when the driver code is being loaded into the Lua runtime.
1 parent 7a94428 commit df26b2e

File tree

156 files changed

+375
-1248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+375
-1248
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-- Copyright 2025 SmartThings, Inc.
2+
-- Licensed under the Apache License, Version 2.0
3+
14
return function(opts, driver, device)
25
local FINGERPRINTS = {
36
{ mfr = "LUMI", model = "lumi.light.acn004" },

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-- Copyright 2025 SmartThings, Inc.
2+
-- Licensed under the Apache License, Version 2.0
3+
14
local clusters = require "st.zigbee.zcl.clusters"
25
local cluster_base = require "st.zigbee.cluster_base"
36
local data_types = require "st.zigbee.data_types"

drivers/SmartThings/zigbee-switch/src/aqara/can_handle.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-- Copyright 2025 SmartThings, Inc.
2+
-- Licensed under the Apache License, Version 2.0
3+
14
return function(opts, driver, device)
25
local FINGERPRINTS = require("aqara.fingerprints")
36
for _, fingerprint in ipairs(FINGERPRINTS) do

drivers/SmartThings/zigbee-switch/src/aqara/fingerprints.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-- Copyright 2025 SmartThings, Inc.
2+
-- Licensed under the Apache License, Version 2.0
3+
14
return {
25
{ mfr = "LUMI", model = "lumi.plug.maeu01" },
36
{ mfr = "LUMI", model = "lumi.plug.macn01" },

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-- Copyright 2025 SmartThings, Inc.
2+
-- Licensed under the Apache License, Version 2.0
3+
14
local capabilities = require "st.capabilities"
25
local clusters = require "st.zigbee.zcl.clusters"
36
local cluster_base = require "st.zigbee.cluster_base"

drivers/SmartThings/zigbee-switch/src/aqara/multi-switch/can_handle.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-- Copyright 2025 SmartThings, Inc.
2+
-- Licensed under the Apache License, Version 2.0
3+
14
return function(opts, driver, device)
25
local FINGERPRINTS = require("aqara.multi-switch.fingerprints")
36
for _, fingerprint in ipairs(FINGERPRINTS) do

drivers/SmartThings/zigbee-switch/src/aqara/multi-switch/fingerprints.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-- Copyright 2025 SmartThings, Inc.
2+
-- Licensed under the Apache License, Version 2.0
3+
14
return {
25
{ mfr = "LUMI", model = "lumi.switch.n1acn1", children = 1, child_profile = "" },
36
{ mfr = "LUMI", model = "lumi.switch.n2acn1", children = 2, child_profile = "aqara-switch-child" },

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-- Copyright 2025 SmartThings, Inc.
2+
-- Licensed under the Apache License, Version 2.0
3+
14
local device_lib = require "st.device"
25
local capabilities = require "st.capabilities"
36
local cluster_base = require "st.zigbee.cluster_base"

drivers/SmartThings/zigbee-switch/src/aqara/sub_drivers.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-- Copyright 2025 SmartThings, Inc.
2+
-- Licensed under the Apache License, Version 2.0
3+
14
local lazy_load = require "lazy_load_subdriver"
25

36
return {

drivers/SmartThings/zigbee-switch/src/aqara/version/can_handle.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-- Copyright 2025 SmartThings, Inc.
2+
-- Licensed under the Apache License, Version 2.0
3+
14
return function (opts, driver, device)
25
local PRIVATE_MODE = "PRIVATE_MODE"
36
local private_mode = device:get_field(PRIVATE_MODE) or 0

0 commit comments

Comments
 (0)