Use modern device attrib handling (#15429)

* Use modern attrib handling
Remove device attribs array.

fixes #15422

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Tony Murray
2023-10-11 18:29:47 -05:00
committed by GitHub
parent f21b2b3318
commit e6be5f777b
7 changed files with 27 additions and 27 deletions

View File

@@ -234,7 +234,6 @@ function device_by_id_cache($device_id, $refresh = false)
$device['location'] = $model->location->location ?? null;
$device['lat'] = $model->location->lat ?? null;
$device['lng'] = $model->location->lng ?? null;
$device['attribs'] = $model->getAttribs();
return $device;
}