Skip to content

Commit

Permalink
Merge pull request #1239 from SmartThingsCommunity/matter-switch-vari…
Browse files Browse the repository at this point in the history
…able-comment

Matter Switch: add comment for COMPONENT_TO_ENDPOINT_MAP
  • Loading branch information
ctowns authored Feb 23, 2024
2 parents 7758410 + 6222222 commit b9d6e91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/SmartThings/matter-switch/src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ local COLOR_TEMPERATURE_MIRED_MAX = CONVERSION_CONSTANT/COLOR_TEMPERATURE_KELVIN
local COLOR_TEMPERATURE_MIRED_MIN = CONVERSION_CONSTANT/COLOR_TEMPERATURE_KELVIN_MAX

local SWITCH_INITIALIZED = "__switch_intialized"
-- COMPONENT_TO_ENDPOINT_MAP is here only to perserve the endpoint mapping for
-- devices that were joined to this driver as MCD devices before the transition
-- to join all matter-switch devices as parent-child. This value will only exist
-- in the device table for devices that joined prior to this transition, and it
-- will not be set for new devices.
local COMPONENT_TO_ENDPOINT_MAP = "__component_to_endpoint_map"
local AGGREGATOR_DEVICE_TYPE_ID = 0x000E
local detect_matter_thing
Expand Down

0 comments on commit b9d6e91

Please sign in to comment.