Enhance inventory management: add scanInventory function and improve furnace status refresh
This commit is contained in:
@@ -894,7 +894,9 @@ local function refreshFurnaceStatus()
|
|||||||
end
|
end
|
||||||
cache.furnaceStatus = status
|
cache.furnaceStatus = status
|
||||||
bumpStateVersion()
|
bumpStateVersion()
|
||||||
end(deviceName)
|
end
|
||||||
|
|
||||||
|
local function scanInventory(deviceName)
|
||||||
local inv = wrapCached(deviceName)
|
local inv = wrapCached(deviceName)
|
||||||
if not inv then return {} end
|
if not inv then return {} end
|
||||||
local result = {}
|
local result = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user