Revert "bug - Fix API bug causing note updates to fail" (#15767)

This commit is contained in:
Jellyfrog
2024-01-19 16:14:29 +01:00
committed by GitHub
parent 0406df7691
commit 0b8413ed96

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)->setAttrib($attrib_type, $attrib_value);
return DeviceCache::get((int) $device['device_id'])->setAttrib($attrib_type, $attrib_value);
}
function get_dev_attribs($device_id)