code: def set_fan_direction(self, direction):
          
          desired_state = {"direction": direction}
  
          response = self.api_interface.set_device_state(self, {
              "desired_state": desired_state
          })
  
          self._update_state_from_response(response)
docs: :param direction: a string one of ["forward", "reverse"]
          :return: nothing