'Get the sensor data for type.'

def read_sensor_any(self, sensor_type=''):

    if (not self.ipmi_support):
        return {}
    mapping = {'': self._read_sensor_all, 'Temperature': self._read_sensor_temperature, 'Fan': self._read_sensor_fan, 'Voltage': self._read_sensor_voltage, 'Current': self._read_sensor_current}
    try:
        return mapping[sensor_type]()
    except KeyError:
        raise ipmiexcept.IPMIException(_('Wrong    sensor    type'))
