SynologyDSM/SynologyDSM.py
def volume_disk_temp_max(self, volume):
        """Maximum temperature of all disks making up the volume"""
        volume = self._get_volume(volume)
        if volume is not None:
            vol_disks = volume["disks"]
            if vol_disks is not None:
                max_temp = 0

                for vol_disk in vol_disks:
                    disk_temp = self.disk_temp(vol_disk)
                    if disk_temp is not None and disk_temp > max_temp:
                        max_temp = disk_temp

                return max_temp
def volume_disk_temp_max(self, volume):
        volume = self._get_volume(volume)
        if volume is not None:
            vol_disks = volume["disks"]
            if vol_disks is not None:
                max_temp = 0

                for vol_disk in vol_disks:
                    disk_temp = self.disk_temp(vol_disk)
                    if disk_temp is not None and disk_temp > max_temp:
                        max_temp = disk_temp

                return max_temp
def volume_disk_temp_max ( self , volume ) : volume = self . _get_volume ( volume ) if volume is not None : vol_disks = volume [ "disks" ] if vol_disks is not None : max_temp = 0 for vol_disk in vol_disks : disk_temp = self . disk_temp ( vol_disk ) if disk_temp is not None and disk_temp > max_temp : max_temp = disk_temp return max_temp
Maximum temperature of all disks making up the volume
Maximum temperature of all disks making up the volume