def set_fan_speed(self, fan_speed, **kwargs):
    'Set fan speed.'
    from libpurecoollink.const import PowerMode
    _LOGGER.debug('Set fan speed %s on device %s', fan_speed, self.name)
    power_modes = {'Quiet': PowerMode.QUIET, 'Max': PowerMode.MAX}
    self._device.set_power_mode(power_modes[fan_speed])
Set fan speed.
def set_fan_speed(self, fan_speed, **kwargs):
    
    from libpurecoollink.const import PowerMode
    _LOGGER.debug('Set fan speed %s on device %s', fan_speed, self.name)
    power_modes = {'Quiet': PowerMode.QUIET, 'Max': PowerMode.MAX}
    self._device.set_power_mode(power_modes[fan_speed])