setFanMode method

Future<void> setFanMode(
  1. String deviceId,
  2. AvailableFanMode fanMode, {
  3. SetFanModeFunction setFanMode = ThermostatRepository.setFanMode,
})

Implementation

Future<void> setFanMode(String deviceId, AvailableFanMode fanMode,
    {SetFanModeFunction setFanMode = ThermostatRepository.setFanMode}) async {
  return performAction(fanMode, () => getFanModeState,
      () => setFanMode(_request, deviceId, fanMode));
}