Skip to content

Commit

Permalink
fix: embedded def
Browse files Browse the repository at this point in the history
  • Loading branch information
hcarter-775 committed Jan 3, 2025
1 parent 438b625 commit 66cf375
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(...)
Expand All @@ -20,7 +20,7 @@ function CumulativeEnergyImported:read(device, endpoint_id)
endpoint_id,
self._cluster.ID,
self.ID,
nil --event_id
nil
)
end

Expand All @@ -30,7 +30,7 @@ function CumulativeEnergyImported:subscribe(device, endpoint_id)
endpoint_id,
self._cluster.ID,
self.ID,
nil --event_id
nil
)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(...)
Expand All @@ -20,7 +20,7 @@ function PeriodicEnergyImported:read(device, endpoint_id)
endpoint_id,
self._cluster.ID,
self.ID,
nil --event_id
nil
)
end

Expand All @@ -30,7 +30,7 @@ function PeriodicEnergyImported:subscribe(device, endpoint_id)
endpoint_id,
self._cluster.ID,
self.ID,
nil --event_id
nil
)
end

Expand Down

0 comments on commit 66cf375

Please sign in to comment.