bug - Fix API bug causing note updates to fail (#15766)

This commit is contained in:
Tozz
2024-01-19 14:54:21 +01:00
committed by GitHub
parent 2a2ba4ba98
commit 0406df7691
+1 -1
View File
@@ -291,7 +291,7 @@ function zeropad($num, $length = 2)
function set_dev_attrib($device, $attrib_type, $attrib_value)
{
return DeviceCache::get((int) $device['device_id'])->setAttrib($attrib_type, $attrib_value);
return DeviceCache::get((int) $device)->setAttrib($attrib_type, $attrib_value);
}
function get_dev_attribs($device_id)