From 66cf375e9653615c5a2aa42ac45f883316f7b565 Mon Sep 17 00:00:00 2001 From: Harrison Carter Date: Fri, 3 Jan 2025 11:34:10 -0600 Subject: [PATCH] fix: embedded def --- .../server/attributes/CumulativeEnergyImported.lua | 6 +++--- .../server/attributes/PeriodicEnergyImported.lua | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/SmartThings/matter-switch/src/ElectricalEnergyMeasurement/server/attributes/CumulativeEnergyImported.lua b/drivers/SmartThings/matter-switch/src/ElectricalEnergyMeasurement/server/attributes/CumulativeEnergyImported.lua index c295bcab8b..3dc58635e1 100644 --- a/drivers/SmartThings/matter-switch/src/ElectricalEnergyMeasurement/server/attributes/CumulativeEnergyImported.lua +++ b/drivers/SmartThings/matter-switch/src/ElectricalEnergyMeasurement/server/attributes/CumulativeEnergyImported.lua @@ -5,7 +5,7 @@ local TLVParser = require "st.matter.TLV.TLVParser" local CumulativeEnergyImported = { ID = 0x0001, NAME = "CumulativeEnergyImported", - base_type = require "st.matter.generated.zap_clusters.ElectricalEnergyMeasurement.types.EnergyMeasurementStruct", + base_type = require "ElectricalEnergyMeasurement.types.EnergyMeasurementStruct", } function CumulativeEnergyImported:new_value(...) @@ -20,7 +20,7 @@ function CumulativeEnergyImported:read(device, endpoint_id) endpoint_id, self._cluster.ID, self.ID, - nil --event_id + nil ) end @@ -30,7 +30,7 @@ function CumulativeEnergyImported:subscribe(device, endpoint_id) endpoint_id, self._cluster.ID, self.ID, - nil --event_id + nil ) end diff --git a/drivers/SmartThings/matter-switch/src/ElectricalEnergyMeasurement/server/attributes/PeriodicEnergyImported.lua b/drivers/SmartThings/matter-switch/src/ElectricalEnergyMeasurement/server/attributes/PeriodicEnergyImported.lua index 7509c5a7de..753b91ea2d 100644 --- a/drivers/SmartThings/matter-switch/src/ElectricalEnergyMeasurement/server/attributes/PeriodicEnergyImported.lua +++ b/drivers/SmartThings/matter-switch/src/ElectricalEnergyMeasurement/server/attributes/PeriodicEnergyImported.lua @@ -5,7 +5,7 @@ local TLVParser = require "st.matter.TLV.TLVParser" local PeriodicEnergyImported = { ID = 0x0003, NAME = "PeriodicEnergyImported", - base_type = require "st.matter.generated.zap_clusters.ElectricalEnergyMeasurement.types.EnergyMeasurementStruct", + base_type = require "ElectricalEnergyMeasurement.types.EnergyMeasurementStruct", } function PeriodicEnergyImported:new_value(...) @@ -20,7 +20,7 @@ function PeriodicEnergyImported:read(device, endpoint_id) endpoint_id, self._cluster.ID, self.ID, - nil --event_id + nil ) end @@ -30,7 +30,7 @@ function PeriodicEnergyImported:subscribe(device, endpoint_id) endpoint_id, self._cluster.ID, self.ID, - nil --event_id + nil ) end