SynologyDSM/SynologyDSM.py
def _get_disk(self, disk_id):
        """Returns a specific disk"""
        if self._data is not None:
            for disk in self._data["disks"]:
                if disk["id"] == disk_id:
                    return disk
def _get_disk(self, disk_id):
        if self._data is not None:
            for disk in self._data["disks"]:
                if disk["id"] == disk_id:
                    return disk
def _get_disk ( self , disk_id ) : if self . _data is not None : for disk in self . _data [ "disks" ] : if disk [ "id" ] == disk_id : return disk
Returns a specific disk
Returns a specific disk