Update models devices.php

Fixed error when viewing device values